|
Re: newbie: TPTP cannot find agents [message #126420 is a reply to message #126390] |
Fri, 14 March 2008 11:07 |
Eclipse User |
|
|
|
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 #126698 is a reply to message #126686] |
Tue, 18 March 2008 11:16 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.02823 seconds