svejb
Posts: 8 Joined: Fri May 20, 2005 12:53 pm
Post
by 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
Vladimir Kondratyev
Posts: 1626 Joined: Tue Aug 10, 2004 7:52 pm
Post
by 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.
svejb
Posts: 8 Joined: Fri May 20, 2005 12:53 pm
Post
by 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
Vladimir Kondratyev
Posts: 1626 Joined: Tue Aug 10, 2004 7:52 pm
Post
by 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
svejb
Posts: 8 Joined: Fri May 20, 2005 12:53 pm
Post
by 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
Vladimir Kondratyev
Posts: 1626 Joined: Tue Aug 10, 2004 7:52 pm
Post
by 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: 1626 Joined: Tue Aug 10, 2004 7:52 pm
Post
by 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