2

I am trying to profile CPU usage using TPTP. Application to profile run on Linux RH AS5. I installed and configured Agent Controller like described here

I ran the java application using the command

java '-agentlib:JPIBootLoader=JPIAgent:server=standalone,file=log.trcxml;CGProf' MyApp

The monitoring station is All-In-one TPTP version 4.6.2. I followed the stepes described here

on Eclipse - on the "Profile Configuration" I choose a new configuration for "Attach to Agent", set the host to my remote linux machine where MyApp is running, test connection succeed and when I get to the "Agents" tab, I see "Pending...", a background process "Feching children for host" is running and can't find anything which makes it impossible to profile.

Any idea?

skaffman
  • 398,947
  • 96
  • 818
  • 769
rperez
  • 8,430
  • 11
  • 36
  • 44
  • I have the sample problem except my remote application is running in a Websphere AppServer. The test connection button works fine but no agents are there... I have set the "-agentlib" variables in the debug parameter field of Websphere and the server is running in debug mode. Did you find any solution yet? Would be great if there are some people who know more about this topic... – david May 26 '10 at 12:38

1 Answers1

2

You have to run the Agent Controller on the java application in server mode. Currently your command runs it 'headless' and writes it to a log file. The website you linked has a list of the various options for the server parameter.

java '-agentlib:JPIBootLoader=JPIAgent:server=enabled;CGProf' MyApp
Kevin
  • 21
  • 2