Cannot find libyjpagent.so library on Solaris

Questions about YourKit Java Profiler
Post Reply
manjia
Posts: 3
Joined: Mon Apr 25, 2005 4:46 pm

Cannot find libyjpagent.so library on Solaris

Post by manjia »

Hi
I've got YourKit 4.0.9 working great under Windows but having installed it on our Solaris-SPARC test machine I cannot get it to run.

Our OS version is:

Code: Select all

$ uname -a
SunOS bouncy.jupiter.bbc.co.uk 5.8 Generic_117350-15 sun4u sparc SUNW,Sun-Fire-280R
Our Java version is:

Code: Select all

$ java -version
Java version "1.4.2_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03)
Java HotSpot(TM) Client VM (build 1.4.2_06-b03, mixed mode)
I added the bin/solaris-sparc directory to the LD_LIBRARY_PATH and exported it, but I get the following:

Code: Select all

$ echo $LD_LIBRARY_PATH
/home/jboss/yjp-4.0.9/bin/solaris-sparc:/oracle/product/9.2/lib:/usr/lib/lwp:/oracle/product/9.2/jdbc/lib
$ samples/sample2/run.sh
Error occurred during initialization of VM
Could not find -Xrun library: libyjpagent.so
I have checked for link errors also:

Code: Select all

$ ldd bin/solaris-sparc/libyjpagent.so
        libc.so.1 =>     /usr/lib/libc.so.1
        libdl.so.1 =>    /usr/lib/libdl.so.1
        /usr/platform/SUNW,Sun-Fire-280R/lib/libc_psr.so.1
Any further suggestions from anybody?
Thanks
Asad
manjia
Posts: 3
Joined: Mon Apr 25, 2005 4:46 pm

fixed it

Post by manjia »

I copied across the library from my Windows install (YourKit 4.0.8) and it works happily.
I had previously downloaded the 4.0.9 zip from the site and unzipped that on the Solaris box. Is this a corrupt library issue in the 4.0.9 download?
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Post by Anton Katilin »

Hi,

Thank you for your report.

Looks like there are indeed some problems with Solaris .so in this build.

The fix will be available tomorrow.

Best regards,
Anton
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Post by Anton Katilin »

The fix is available now (4.0.10)

Could you please confirm that it works for you.

Best regards,
Anton
manjia
Posts: 3
Joined: Mon Apr 25, 2005 4:46 pm

Post by manjia »

Hi Anton
Thanks for the updated .so, it works ok in 32bit mode but I get the same errors using a 64bit JVM (i.e. running java -d64 ...)
Do you have support for this?
Thanks
Asad
Vladimir Kondratyev
Posts: 1624
Joined: Tue Aug 10, 2004 7:52 pm

Post by Vladimir Kondratyev »

Solaris 64bit will be supported in the version of YourKit Java Profiler. I think that early access version will be available within a month.
Post Reply