Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » Use TPTP to profile TOMCAT server remotely(Problems to profile remotely in 4.6.2 )
Use TPTP to profile TOMCAT server remotely [message #522289] Mon, 22 March 2010 06:12 Go to next message
lsq  is currently offline lsq Friend
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 #522292 is a reply to message #522289] Mon, 22 March 2010 07:04 Go to previous messageGo to next message
lsq  is currently offline lsq Friend
Messages: 40
Registered: July 2009
Member
I found out that errors repeatedly occured are something like receive rac messages, so ignore,

And in the local workbench AgentControllerUnavailableException are thrown.
Re: Use TPTP to profile TOMCAT server remotely [message #522658 is a reply to message #522289] Tue, 23 March 2010 14:03 Go to previous messageGo to next message
Eugene Chan is currently offline Eugene ChanFriend
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 #522660 is a reply to message #522292] Tue, 23 March 2010 09:16 Go to previous messageGo to next message
Eugene Chan is currently offline Eugene ChanFriend
Messages: 287
Registered: July 2009
Senior Member
Try stop the AC on the remote machine, and stop/kill all dangling java.exe
that may have been started by the AC on the same host.
Then start the AC again and follow by starting the Tomcat server.
Does the Tomcat server start with any error with the JAVA_OPTS values?

Eugene

"lsq" <lishuqiang@hotmail.com> wrote in message
news:ho74pi$bd1$1@build.eclipse.org...
>I found out that errors repeatedly occured are something like receive rac
>messages, so ignore,
> And in the local workbench AgentControllerUnavailableException are thrown.
Re: Use TPTP to profile TOMCAT server remotely [message #522888 is a reply to message #522658] Wed, 24 March 2010 11:44 Go to previous messageGo to next message
lsq  is currently offline lsq Friend
Messages: 40
Registered: July 2009
Member
Thanks,
I can see that I can connect to the remote server! It should be ok, I did the same on another machine, and it is just fine to get connected.
I did nothing, no environment variables, no agent controlers, just a clean installation of eclipse and TPTP,I am bit confused why it is ok in one and not the other!
Thanks.
Re: Use TPTP to profile TOMCAT server remotely [message #522890 is a reply to message #522660] Wed, 24 March 2010 11:51 Go to previous message
lsq  is currently offline lsq Friend
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 .
Previous Topic:tptp automated test on web browser
Next Topic:Build path contains duplicate entry
Goto Forum:
  


Current Time: Fri Mar 29 09:47:21 GMT 2024

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

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

Back to the top