Tomcat 5.5.4 does not start with tomcat5_with_yjp.bat

Questions about YourKit Java Profiler
Post Reply
LR
Posts: 1
Joined: Sun May 01, 2005 5:46 pm

Tomcat 5.5.4 does not start with tomcat5_with_yjp.bat

Post by LR »

Hi,

I am using tomcat 5.5.4 with Eclipse 3.1M6. I usually start Tomcat from the servers view of the Web Tools Plateform in Eclipse.

I dont have understood how I should use the plugin for eclipse ?

And I also dont understand how I should profile Tomcat as standalone application. When I try to execute tomcat5_with_yjp.bat, it says :

============================
D:\Program_Files\Tomcat 5.5\bin>tomcat5_with_yjp.bat

D:\Program_Files\Tomcat 5.5\bin>rem Generated with YourKit Java Profiler 4.0.10


D:\Program_Files\Tomcat 5.5\bin>set PATH=C:\Program Files\YourKit Java Profiler
4.0.10\bin\win32;c:\ruby\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\
Wbem;D:\java\j2sdk1.4.2_01\bin;.\;C:\Program Files\ATI Technologies\ATI Control
Panel;D:\Program Files\MySQL\MySQL-4.1.8\bin;C:\WINDOWS\System32;D:\Program File
s\jad;D:\Program Files\apache-ant-1.6.2\bin;D:\Program Files\eclipse3.1M6\bin

D:\Program_Files\Tomcat 5.5\bin>set JAVA_TOOL_OPTIONS=-agentlib:yjpagent=session
name=Tomcat

D:\Program_Files\Tomcat 5.5\bin>tomcat5.exe //TS//Tomcat5 --JvmOptions="-Xrunyjp
agent:sessionname=Tomcat"
Picked up JAVA_TOOL_OPTIONS: -agentlib:yjpagent=sessionname=Tomcat
[YourKit Java Profiler 4.0.10] Using JVMTI
[YourKit Java Profiler 4.0.10] Listening on port 1843...
============================

In YourKit Java Profiler 4.0.10, I clicked "Connect to remote application" end enters "localhost:1843" and it says "There's no application running at localhost with profiler agent configured to listen on port 1843".

How should I do ?

Thank you
Best regards
Lilian
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Post by Anton Katilin »

Hi,
I am using tomcat 5.5.4 with Eclipse 3.1M6. I usually start Tomcat from the servers view of the Web Tools Plateform in Eclipse.

I dont have understood how I should use the plugin for eclipse ?
This kind of run configurations is not supported at the moment.
Please run Tomcat manually. You can use plugin for naviagtion to source code from profiling results.


In YourKit Java Profiler 4.0.10, I clicked "Connect to remote application" end enters "localhost:1843" and it says "There's no application running at localhost with profiler agent configured to listen on port 1843".
Why don't you use Connect to local application instead?
Post Reply