Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » newbie: TPTP cannot find agents
newbie: TPTP cannot find agents [message #126390] Fri, 14 March 2008 10:29 Go to next message
Martin Trummer is currently offline Martin TrummerFriend
Messages: 5
Registered: July 2009
Junior Member
I just installed TPT 4.3.1.

I click: "Open Profile Dialog"
In this dialog create a New_configuration in 'Attach - Java Process' node.

Whatever I do, I do not find any agents.

I tried this:
1) direct connection
* no external agent controller running
* in the hosts tab, 'Test Connection' works fo the 'Local DirectConnection'
but in the Agents tab no agents are found

2) external ca
* under preferences I disable the IAC
* start the external controller
- verfiy that it works by starting the SampleClient: this is ok
* restart eclipse
* in the New_configuration now the 'Test Connection' for the 'Local
DirectConnection' will give me a message that an RAC is running (OK)
* 'Test Connection' for 'localhost:10002' succeeds
but even now, the Agents tab remains empty?

any ideas?

BTW: another thing that does not work (I think that's because no agents
are found) is, when I rightclick on my web-server (in the Servers view), I
see the Profile menuitem in the pop-up but it is deactivated!
Re: newbie: TPTP cannot find agents [message #126420 is a reply to message #126390] Fri, 14 March 2008 11:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ck2329.mail.ru

If you are trying to "Attach - Java Process " - then agent must be running
before you will try to connect to it.

It means - first you must run your application with attached agent or just
agent - then you should see it from eclipse.
Re: newbie: TPTP cannot find agents [message #126459 is a reply to message #126420] Mon, 17 March 2008 07:42 Go to previous messageGo to next message
Igor Alelekov is currently offline Igor AlelekovFriend
Messages: 139
Registered: July 2009
Senior Member
Right :)
Distributed TimeCollector may be used as sample agent.
Re: newbie: TPTP cannot find agents [message #126686 is a reply to message #126420] Tue, 18 March 2008 08:33 Go to previous messageGo to next message
Martin Trummer is currently offline Martin TrummerFriend
Messages: 5
Registered: July 2009
Junior Member
thanks, now I got it working

my problems:
* I didn't really understand what an agent is. The documentation is really
good (but my English isn't)
* I used Java 1.6 which does not support -XrunpiAgent:server=enabled -
works on Java 1.5
Re: newbie: TPTP cannot find agents [message #126698 is a reply to message #126686] Tue, 18 March 2008 11:16 Go to previous message
Eclipse UserFriend
Originally posted by: ck2329.mail.ru

Regarding agent:

Agent means some kind of program that collects some kind of data. Java
profiler could be an agent. Program that shows "Hello world" string could
be an agent. You shold understand that in case of remote actions(profiling
for example) - there is no direct connection between Eclipse and your
agent. There is intermediate part named Agent Controller(AC). AC controlls
all running agents, AC is able to run new agents or terminate them.

In general workflow looks like this :

Eclipse <-> AC <-> Agent

1) Eclipse sends command to AC
2) AC passes command to the exact agent
3) Agent sends data to AC
4) AC forward data from agent to Eclipse

Regarding JAVA 1.6:

There were 2 rpofiling interfaces in Java history - JVMPI and JVMTI.
JVMPI is obsolete and not supported in 1.6 version.

In case of java 1.6 try to use following command line :

java -agentlib:JPIBootLoader=JPIAgent:server=enabled;HeapProf
program_to_run

where "program_to_run" - is your java class

You may replace HeapProf with CGProf (Call graph profiler - Execution
statistics) or ThreadProf - thread profiling
Previous Topic:Remote Agent not sending Data across firewall
Next Topic:ACServer: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No s
Goto Forum:
  


Current Time: Sat Apr 20 04:15:51 GMT 2024

Powered by FUDForum. Page generated in 0.03369 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top