
May 6th, 2008, 03:36 AM
|
|
Contributing User
|
|
Join Date: Oct 2004
Posts: 89

Time spent in forums: 15 h 28 m 46 sec
Reputation Power: 4
|
|
|
Profiling when doing remote debugging
Hi.
I have installed Tomcat 5 and I am debugging my application by Remote Debugging option.It all works fine, when I start the server (out of eclipse) and debug my application.
For this I have made following changes in my Catalina.bat:
Code:
set JAVA_OPTS=-DESS_ES_HOME=C:\MyDrives\DDrive\planning -Dhyperion.home=C:\Hyperion -Djava.endorsed.dirs=C:\Hyperion\common\appServers\Tomcat\5.5.17\common -Djava.library.path=C:\MyDrives\DDrive\planning\output -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9095
But I want to do profiling of my application and have installed TPTP. In the Arguments tab of Profile window I give above snippet in VM arguments. Now my VM Arguments read as:
Code:
-Dcatalina.base="C:\program files\Apache Software Foundation\Tomcat 5.0" -Dcatalina.home="C:\program files\Apache Software Foundation\Tomcat 5.0" -Dwtp.deploy="C:\program files\Apache Software Foundation\Tomcat 5.0\wtpwebapps" -Djava.endorsed.dirs="C:\program files\Apache Software Foundation\Tomcat 5.0\common\endorsed" -DESS_ES_HOME=C:\MyDrives\DDrive\planning -Dhyperion.home=C:\Hyperion
this is same for my Tomcat launch configuration also.
But when I click on profile button, it trys to start the Tomcat server defined in Eclipse and then errors out when it doesn't find that running.
Can you please tell me how can I profile when running the server out of eclipse?
Thanks.
|