Get Eclipse TPTP to run on Ubuntu Karmic Koala

EclipseEclipse TPTP (Test & Performance Tools Project) is a very cool and nifty tool to monitor your application performance. Especially when designing, implementing and testing algorithms (for example, on huge graphs, like I’m working on) it is very useful to know the exact amount of memory an algorithm is using. Important information when comparing multiple algorithms to each other. But what to do when TPTP refuses to profile your project, complaining “IWAT0435E An error occurred when connecting to the host”?

Error messages you might encounter are like: “an error occurred when connecting to the host” and “the launch requires
at least one data collector to be selected”.

Actually (you wouldn’t say!), TPTP is complaining about not being able to connect to the Integrated Agent Controller. That’s the part of TPTP responsible for monitoring your application and sending information to Eclipse. Most probably, TPTP was installed to your Eclipse plugins directory (“/home/bas/.eclipse/org.eclipse.platform_3.5.0_155965261/plugins” in my case).

Check out whether you’re able to start the IAC by hand, this is what happened when I tried to do so:

$ ~/.eclipse/org.eclipse.platform_3.5.0_155965261/plugins/

Starting Agent Controller.
ACServer: error while loading shared libraries: cannot open shared object file: No such file or directory
ACServer failed to start.

Clearly, the Agent Controller was built against old C++ libraries which were no longer available on my system (Ubuntu 9.10 Karmic Koala, amd64). The package “libstc++5” from Ubuntu 9.04 Jaunty Jackalope contains the missing library, installing the package will solve the problem:

sudo dpkg -i libstdc++5_3.3.6-17ubuntu1_amd64.deb

Now, trying to manually start the IAC should generate an entirely different message, like this:

$ ~/.eclipse/org.eclipse.platform_3.5.0_155965261/plugins/

Starting Agent Controller.
sh: ./ not found
Error reading the Agent Controller configuration file. Please check for valid configuration.Could not start Agent Controller.ACServer failed to start.

Although it looks a bit dramatic, it’s nothing to get too worried about. Just restart Eclipse and try the “Profile” button once more. TPTP should work like a charm!

2 thoughts on “Get Eclipse TPTP to run on Ubuntu Karmic Koala

Comments are closed.