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.

Unable to get the yjp agent running on Linux.

Moderators: Vladimir Kondratyev, Anton Katilin

Unable to get the yjp agent running on Linux.

Postby svejb » Fri Jun 24, 2005 2:12 pm

Hi there,

Howdy. I'm unable to get the yjp agent running on linux.

The env settings below:

Using JDK 5_03 and yjp 4.5 eap build 608

LD_LIBRARY_PATH=./yjp/libyjpagent.so
export LD_LIBRARY_PATH
echo "LDL is:$LD_LIBRARY_PATH"
java -Xrunlibyjpagent:help

The error is:
Error occurred during initialization of VM
Could not find agent library on the library path or in the local directory: libyjpagent
: not found

Any help is greatly appreciated.
Thanks,
Venkat
svejb
 
Posts: 8
Joined: Fri May 20, 2005 12:53 pm

Postby Vladimir Kondratyev » Fri Jun 24, 2005 2:30 pm

1) Please make sure that LD_LIBRARY_PATH is correctly set
2) What is the full output of "ldd libyjpagent.so" command?

P.S. please post problem into "Bugs" forum next time. "features" forum is definitely not a proper place.
Vladimir Kondratyev
 
Posts: 1519
Joined: Tue Aug 10, 2004 7:52 pm
Location: Düsseldorf, Germany

Postby svejb » Fri Jun 24, 2005 2:33 pm

Sorry about the forum.

The output for "ldd libyjpagent.so" is:

linux-gate.so.1 => (0xffffe000)
libc.so.6 => /lib/tls/libc.so.6 (0x55690000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x56555000)

Thanks,
Venkat
svejb
 
Posts: 8
Joined: Fri May 20, 2005 12:53 pm

Postby Vladimir Kondratyev » Fri Jun 24, 2005 2:44 pm

ldd's output is perfect. Most probable your LD_LIBRARY_PATH is wrong.
BTW, what is output of "uname -a"?

--vladimir
Vladimir Kondratyev
 
Posts: 1519
Joined: Tue Aug 10, 2004 7:52 pm
Location: Düsseldorf, Germany

Postby svejb » Fri Jun 24, 2005 2:46 pm

Linux basic-server 2.6.5-7.139-smp #1 SMP Fri Jan 14 15:41:33 UTC 2005 x86_64 x86_64 x86_64 GNU/Linux

thanks,
Venkat
svejb
 
Posts: 8
Joined: Fri May 20, 2005 12:53 pm

Postby Vladimir Kondratyev » Fri Jun 24, 2005 6:49 pm

The LD_LIBRARY_PATH is only the problem. Please make sure that it's correctly set. Also please use absolute path instead of releative one (error prone way)

Regards,
--vladimir
Vladimir Kondratyev
 
Posts: 1519
Joined: Tue Aug 10, 2004 7:52 pm
Location: Düsseldorf, Germany

Postby Vladimir Kondratyev » Fri Jun 24, 2005 6:53 pm

I see that you are using 64bit Linux. 64bit libyjpagent.so file for 64bit Java is only available in early access version of profiler. If you are using 64bit Java please download EAP version at http://www.yourkit.com/eap/

--vladimir
Vladimir Kondratyev
 
Posts: 1519
Joined: Tue Aug 10, 2004 7:52 pm
Location: Düsseldorf, Germany


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.