Monthly Archives: March 2008

Eclipse and TPTP – Profiling Java Applications

Ever wondered why your code is so damn slow? Where are the bottlenecks of the application? Read on for some information how to setup the Eclipse Test and Performance Tools Platform under Linux

The Eclipse TPTP is supposed to be a swiss army knife for everything in the domain of profiling and testing. Unfortunately, the installation via the Update Manager of Eclipse is broken. Totally broken. The agent controller required to gather statistical data does not work and fails with a “No controller on port 10002” message. Not really helpful.

So, starting with the information blogged here and here and with a custom eclipse installation from a tar.gz archive the following steps are required:

1) Install the support library:

  sudo apt-get install libstdc++2.10-glibc2.2

2) Set all agent controller bin files to executable:

  chmod +x eclipse.tptp.platform.ac.linux_ia32_4.4.1.v200709261752/agent_controller/bin/*

3) “Fix the symbolic links for the linked libraries. The following list of files should point to their .so.4.4.0 counterparts. The easiest way to do this is just to download a copy of the standalone Agent Controller and to copy the lib directory to the lib directory of the Integrated Agent Controller”

4) Define a TEMP variable in your shell:

  export TEMP=/tmp

5) Finally start the agent controller manually.

In my case this gave me a running agent to profile my application against. Once. And then no more. A restart of eclipse fixes this. Sometimes.

Sorry, folks, I guess I will stay with the integrated netbeans profiler for now. Here, at least, everything works reliably (!) out of the box without patching code, extracting libraries.