Fully featured low overhead profiler for Java EE and Java SE platforms.
Performance monitoring and profiling of Jenkins, TeamCity, Gradle, Maven, Ant, JUnit and TestNG.
Easy to use performance and memory profiler for .NET framework.

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

Moderators: Vladimir Kondratyev, Anton Katilin

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

Postby Johan » Thu Jun 09, 2005 11:34 am

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
Johan
 
Posts: 6
Joined: Thu Jun 09, 2005 11:24 am

Postby Vladimir Kondratyev » Thu Jun 09, 2005 1:06 pm

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
Vladimir Kondratyev
 
Posts: 1519
Joined: Tue Aug 10, 2004 7:52 pm
Location: Düsseldorf, Germany

Postby Johan » Thu Jun 09, 2005 1:29 pm

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
Johan
 
Posts: 6
Joined: Thu Jun 09, 2005 11:24 am

Postby Anton Katilin » Thu Jun 09, 2005 1:48 pm

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?
Anton Katilin
 
Posts: 5966
Joined: Wed Aug 11, 2004 8:37 am

Postby Johan » Thu Jun 09, 2005 2:03 pm

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
Johan
 
Posts: 6
Joined: Thu Jun 09, 2005 11:24 am


Return to Java Profiler

Who is online

Users browsing this forum: Google [Bot] and 1 guest

YourKit uses cookies and other tracking technologies to improve your browsing experience on our website, to show you personalized content and targeted ads, to analyze our website traffic, and to understand where our visitors are coming from.

By browsing our website, you consent to our use of cookies and other tracking technologies in accordance with the Privacy Policy.