Use TPTP to profile TOMCAT server remotely [message #522289] |
Mon, 22 March 2010 06:12 |
lsq Messages: 40 Registered: July 2009 |
Member |
|
|
I have followed the instructions found here to monitor and profile an application running in a tomcat server in the local network.
First set the angent controler in the remote machine, took default java optionss and ALL for all host, false for security, and test using SampleClient , it is ok.
I have added the following to the catalina.bat the JAVA_OPTS
-agentlib:JPIBootLoader=JPIAgent:server=enabled;HeapProf
set following variable to the PATH
set TPTP_AC_HOME=C:\agntctrl
set JAVA_PROFILER_HOME=C:\agntctrl\plugins\org.eclipse.tptp.java profiler
Set PATH=%JAVA_PROFILER_HOME%;%PATH%;%TPTP_AC_HOME%\bin
start a eclipse workbench on my local machine, try to attach to the ac romotely using port 10002, but couldn't find any.
I try to switch to the stnadalone mode, it seems ok as files are generate.
One thing is that , the as and the TOMCAT server in running using different version of JVMs, is it ok for they to function normally.
|
|
|
|
Re: Use TPTP to profile TOMCAT server remotely [message #522658 is a reply to message #522289] |
Tue, 23 March 2010 14:03 |
Eugene Chan Messages: 287 Registered: July 2009 |
Senior Member |
|
|
Hi,
If you select the remote machine hostname and try "Test Connection" on the
host tab, does it give you connection success message?
The JAVA_OPTS should enable the Tomcat server to be started with profiling
agent to be attached and collect data.
Eugene
"lsq" <lishuqiang@hotmail.com> wrote in message
news:ho71o5$5d6$1@build.eclipse.org...
>I have followed the instructions found here to monitor and profile an
>application running in a tomcat server in the local network.
>
> First set the angent controler in the remote machine, took default java
> optionss and ALL for all host, false for security, and test using
> SampleClient , it is ok.
>
> I have added the following to the catalina.bat the
> AVA_OPTS -agentlib:JPIBootLoader=JPIAgent:server=enabled;HeapProf
>
> set following variable to the PATH
> set TPTP_AC_HOME=C:\agntctrl
> set JAVA_PROFILER_HOME=C:\agntctrl\plugins\org.eclipse.tptp.java profiler
> Set PATH=%JAVA_PROFILER_HOME%;%PATH%;%TPTP_AC_HOME%\bin
>
> start a eclipse workbench on my local machine, try to attach to the ac
> romotely using port 10002, but couldn't find any.
>
> I try to switch to the stnadalone mode, it seems ok as files are generate.
>
> One thing is that , the as and the TOMCAT server in running using
> different version of JVMs, is it ok for they to function normally.
>
>
>
>
>
|
|
|
|
|
Re: Use TPTP to profile TOMCAT server remotely [message #522890 is a reply to message #522660] |
Wed, 24 March 2010 11:51 |
lsq Messages: 40 Registered: July 2009 |
Member |
|
|
Hi, many thanks,
I did the same thing on another machine, a clean installation of eclipse, tptp installed, and try to connect to the remote tomcat server, and it works.
It remains a myth as in the same time the other can't, I did no special thing in the second machine, no environment variable, just eclipse and tptp. There are no firewall settings in both of the client machine, and I have started to work on the other machine.
Yes sometimes you should completely kill the agent controller, totally agree, thx .
|
|
|
Powered by
FUDForum. Page generated in 0.05042 seconds