[EAP 610] Agent: cannot start: No such file or directory

Questions about YourKit Java Profiler
Post Reply
Johan
Posts: 6
Joined: Thu Jun 09, 2005 11:24 am

[EAP 610] Agent: cannot start: No such file or directory

Post by Johan »

Hi,

I am trying to run the yjpagent on a Tomcat server at a Linux i686 machine. The LD_LIBRARY_PATH has been updated with the correct path. The following lines are found in my Tomcat log:

Code: Select all

[YourKit ... build 610] Using JVMPI
[YourKit ... build 610] *** HINT ***: we recommend using Java 5.0 and JVMTI when possible!
[YourKit ... build 610] cannot start: No such file or directory
After that nothing happens. What file could be missing? The agentlib are clearly found...

Here is the output of ldd libyjpagent.so:

Code: Select all

libc.so.6 => /lib/libc.so.6 (0x40136000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
Here is the output of uname -a:

Code: Select all

Linux asimov 2.4.18-bf2.4 #1 ...time... i686 GNU/Linux
Regards,
Johan Hagelbäck
Developer
Travelstart Nordic
Vladimir Kondratyev
Posts: 1626
Joined: Tue Aug 10, 2004 7:52 pm

Post by Vladimir Kondratyev »

Hi Johan,

please try to use experimental libyjpagent.so (build #613) which you can download from out FTP server:

IP: 194.24.241.196
user: ftp
no password

This shared library prints more debug information.

Thank you for assistance,
Vladimir
Johan
Posts: 6
Joined: Thu Jun 09, 2005 11:24 am

Post by Johan »

I got the following exception:

Code: Select all

java.io.IOException: No such file or directory
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.createNewFile(File.java:828)
at com.yourkit.runtime.Core.init(Core.java:201)
/Johan
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Post by Anton Katilin »

The problem is that the profiler agent fails to create an empty file named <user home>/.yjp/.agentQQQQ, where QQQQ - used port number. An attempt to create .yjp directory is made if it does not exist.

Probably this is an issue with permissions.

Are there any special permissions set in the home directory of the user under which you run the profiled application? What do "ls -la ~" and "ls -la ~/.yjp" print?
Johan
Posts: 6
Joined: Thu Jun 09, 2005 11:24 am

Post by Johan »

The /etc/init.d/tomcat4 startup script starts Tomcat with a faked user (tomcat4) with home directory /usr/share/tomcat4. Only root had write access to this directory, and when I changed permissions the agent started without errors.

Thanks for your help!

Regards,
Johan
Post Reply