Hi,
I'm trying to get the JVMPI profiler running on a Mac with Java 1.5.0, however when I
try to test the installation of the native library I get the following error:
| damian-harveys-computer:~ damianharvey$ java -XrunjbossInspector:/tmp Foo
| Error occurred during initialization of VM
| Could not find agent library: libjbossInspector.jnilib (searched
/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Libraries:/System/Library/Java/Extensions:/Library/Java/Extensions:.)
| Trace/BPT trap
|
But as you can see it is present (and I even chmod'd it to 777 and 755 to be sure):
| damian-harveys-computer:~ damianharvey$ ls -la
/System/Library/Java/Extensions/libjboss*
| -rwxrwxrwx 1 root wheel 294328 Oct 16 17:06
/System/Library/Java/Extensions/libjbossInspector.jnilib
|
I'm running Mac OS X 10.4.9 on an Intel Macbook (if that helps).
I've seen some relevant posts that indicate that it might be caused by using the
wrong library (eg. the 32 bit in place of the 64bit -
http://www.jroller.com/nbprofiler/category/Tips%20&%20Tricks) but there is only the
one library for mac.
Very keen to get this running for an app that is nearing production go live. I am
specifically looking to identify any methods in my app that are taking too long to
execute. Is JVMPI the right tool or am I better off with JVMTI?
Thanks,
Damian.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095721#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...