Exploratory Performance Analysis with Performance Co-Pilot [video]

Investigating performance in a complex system is a fascinating undertaking.  When that system spans multiple, closely-cooperating machines and has open-ended input sources (shared storage, or faces the Internet, etc) then the degree of difficulty of such investigations ratchets up quickly.  There are often many confounding factors, with many things going on all at the same time.

The observable behaviour of the system as a whole can be frequently changing even while at a micro level things may appear the same.  Or vice-versa – the system may appear healthy, average and 95th percentile response times are in excellent shape, yet a small subset of tasks are taking an unusually large amount of time to complete, just today perhaps.  Fascinating stuff!

Let’s first consider endearing characteristics of the performance tools we’d want to have at our disposal for exploring performance in this environment.  We are talking production systems of course, so they must be light-weight in all dimensions (processor, memory, storage, networking) and being always-on is a requirement.  They’ll be operating under duress, 24×7.  When other components are failing around these tools, we want them to keep doing their thing (complex systems often exhibit cascading failures); the tools should be operational even when three of four engines fail, there’s no hydraulic pressure, and a plume of thick black smoke is trailing behind the system!

We want them to be able to give us data immediately, and be able to save data for later playback and offline analysis.  We do not want less tangible issues like financial cost, licensing, lack of security, lack of openness or similar constraints to give us pause when deploying the tools to all the cooperating hosts in our complex system.

Perhaps most importantly of all – they must provide access to all of the many metrics from the many different domains (components) of these complex systems – because combinations of factors from different components and different hosts might be (will be!) contributing to today’s crisis.

With this basic tooling in place, we then move up a level and want these tools to be able to play nicely with higher level tools (monitoring and reporting systems, data warehouses, analytics, capacity planning or modelling tools).  That means ideally APIs for extracting data, and tools for producing easily-consumed data for others to build on and analyse further.

This is the set of requirements underpinning the Performance Co-Pilot (PCP) toolkit.

So, with this in mind, let us turn our focus back to the topic at hand – how can we perform simple exploratory performance analysis in complex production systems using this not-so-hypothetical-after-all set of tools.  What do we even mean by “exploratory” in this context?

When confronted with a need to analyse performance we’re often starting with an initial observation about the system – poor response time of an interactive web application, perhaps.  We can explore available data and come up with a series of hypotheses, informed by our observations.

To illustrate the approach, and introduce some of the concepts and tools that are part of the Performance Co-Pilot, the screencast below (under 12 minutes) shows the exploration of some data from two machines in a loosely-coupled cluster – a storage server and an application server.  This is production system data, with some names changed to protect the innocent.  For simplicity, many of the machines that complete this (complex) system are not presented.

You can find more information, books and other Performance Co-Pilot resources on the project website.  In Fedora and EPEL, look for the “pcp”, “pcp-gui” and “pcp-doc” RPMs.


Join Red Hat Developers, a developer program for you to learn, share, and code faster – and get access to Red Hat software for your development.  The developer program and software are both free!

  1. Could you say something about how PCP is collecting the JVM metrics? Are there any standard PMDAs for collecting jvm metrics from tomcat/jboss on RHEL?


    1. Further to my earlier comment, the #pcp channel on freenode is worth dropping by for other such detailed questions – many of the developers can be reached there directly.


  2. In the example shown, the JVM and application instrumentation (and Tomcat, JDBC, and so on – not shown in the video) is being exported using a Java library called Parfait [1]. On the PCP end, that ties in with the Memory-Mapped Value PMDA – pmdammv – which is documented a bit more in Section 4.3 of the Programmers Guide [2]. This offers a very light-weight instrumentation mechanism, this particular company had great success with it.

    Thanks for the in-depth questions! I’m not aware of a JBoss layer in Parfait – Tomcat only at this stage, but it’s designed to be extended. The folks running the Parfait project (and us here at Red Hat, too!) would be very receptive to a JBoss addition, I’m sure.

    [1] http://code.google.com/p/parfait/wiki/IntroductionToParfait
    [2] http://oss.sgi.com/projects/pcp/doc/pcp-programmers-guide.pdf


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s