Main Page

From Pinba.org

Jump to: navigation, search


Pinba is a realtime monitoring/statistics server for PHP using MySQL as a read-only interface.

It accumulates and processes data sent over UDP by multiple PHP processes and displays statistics in a nice human-readable form of simple "reports", also providing read-only interface to the raw data in order to make possible generation of more sophisticated reports and stats.

With Pinba extension users also can measure particular parts of the code using timers with arbitrary tags.

Pinba is not a debugging tool in a common sense, since you're not supposed to do debugging on production servers, but its main goal is to help developers to monitor performance of PHP scripts, locate bottlenecks in realtime and direct developers' attention to the code that really needs it.

Read on for more details.

pinba-scripts-time-small-1d.png

Examples

Downloads

Binary packages

  • Debian packages are available at Dotdeb.org: php5-pinba and pinba-mysql-engine.

(If you know about binary packages for any other OS/distro, let me know).

Sources

How to install Pinba from sources

Snapshots (updated hourly)

Pinba engine: http://pinba.org/files/snapshots/pinba_engine-latest.tar.gz
Pinba extension: http://pinba.org/files/snapshots/pinba_extension-latest.tar.gz
Nginx module: http://pinba.org/files/snapshots/ngx_http_pinba_module-latest.tar.gz

Version 0.0.6 (beta)

Pinba engine: http://pinba.org/files/pinba_engine-0.0.6.tar.gz
Pinba extension: http://pinba.org/files/pinba_extension-0.0.6.tgz

Version 0.0.5 (beta)

Pinba engine: http://pinba.org/files/pinba_engine-0.0.5.tar.gz
Pinba extension: http://pinba.org/files/pinba_extension-0.0.5.tgz

Wiki dumps

Pinba.org wiki in static HTML: http://pinba.org/files/pinba_wiki_dump.tar.gz

Engine Changelog

0.0.6 - 26 Nov 2010
  • Added missing primary key to the timer table.
  • Increased default hostname size to 32 chars.
  • Changed protobuf proto to use lite runtime (and link against libprotobuf-lite).
  • Removed wrong index on tag_id in the timertag table.
  • Fixed build with MySQL 5.5 (hopefully, as there is no way to know what they'll break next).
  • Fixed potential problem with LDFLAGS in the configure script. (Andrew Sitnikov)
0.0.5 - 19 Oct 2009
  • Added rusage to timers (not aggregated on server (yet?)).
  • Fixed possible crash caused by long script names.
  • Disabled query cache for Pinba engine.
0.0.4 - 26 August 2009
  • Added HTTP response code to request data.
  • Added support of Google Protocol Buffers 2.1.0+.
  • Improved configure checks for MySQL sources and libevent.
  • Fixed build on MacOS X.
  • Fixed build on FreeBSD.
  • Fixed build with static libevent of latest versions.
0.0.3 - 04 May 2009

Preview release

PHP Extension Changelog

0.0.6 - 26 Nov 2010
  • Added experimental IPv6 support. (Florian Forster)
  • Fixed extension crash on empty tag value.
0.0.5 - 19 Oct 2009
  • Added rusage to timers (not aggregated on server (yet?)).
0.0.4 - 26 Aug 2009
  • Added HTTP response status to the response data.
  • Added support of Google Protocol Buffers 2.1.0+.
  • Added pinba_script_name_set() function.
0.0.3 - 04 May 2009
  • Initial release.
Personal tools