Tomcat 5 integration failed

Questions about YourKit Java Profiler
Post Reply
craigday
Posts: 1
Joined: Tue Feb 08, 2005 6:11 am

Tomcat 5 integration failed

Post by craigday »

build 526

integration with the tomcat5.exe failed. integration with startup.bat worked fine though:

C:\java\jakarta-tomcat-5.0.28\bin>tomcat5_with_yjp.bat

C:\java\jakarta-tomcat-5.0.28\bin>rem Generated with YourKit Java Profiler 4.0 EAP build 526

C:\java\jakarta-tomcat-5.0.28\bin>set PATH=C:\Program Files\YourKit Java Profiler 4.0 EAP build 526\bin\win32;C:\java\webmethods\glue\bin;c:\openssh\b
in;c:\oracle\instant;c:\java\apache-ant-1.6.1\bin;c:\j2sdk1.4.2_02\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\PROGRA~1\COMPAQ\COMP
AQ~1\DMI\Win32\BIN;C:\Program Files\Sun\MessageQueue3\bin;C:\WINDOWS\system32\nls;C:\WINDOWS\system32\nls\ENGLISH;J:\Oracle\Ora6i\bin;J:\Oracle\Ora6i\
jdk\bin;J:\Oracle\Ora8i\bin;J:\Oracle\Ora60\bin;C:\Program Files\Subversion\bin;C:\java\webmethods\glue\bin;C:\Program Files\SSH Communications Securi
ty\SSH Secure Shell;C:\Program Files\Microsoft Visual C++ Toolkit 2003\\bin

C:\java\jakarta-tomcat-5.0.28\bin>set JAVA_TOOL_OPTIONS=-agentlib:yjpagent=port=10100,sessionname=Tomcat

C:\java\jakarta-tomcat-5.0.28\bin>tomcat5.exe //TS//Tomcat5 --JvmOptions="-Xrunyjpagent:port=10100,sessionname=Tomcat"
[2005-02-09 09:29:29] [349 prunsrv.c] [error]
The system cannot find the file specified.
[2005-02-09 09:29:29] [1037 prunsrv.c] [error]
Load configuration failed

Otherwise,.. keep up the good work :)
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Post by Anton Katilin »

Hello

I've tried, and it works fine for me.

Probably tomcat is started as server at the moment when you launch tomcat5_with_yjp.bat. If so, please try to stop the service before.

Also, please try the latest build 528 and re-generate tomcat5_with_yjp.bat . The difference is that "port=10100" clause will not be specified, instead an available free port will be used in runtime by profiler agent. Probably the problem is with that port.

Best regards,
Anton
Post Reply