I am trying to use Vtune analyzer 9.1 on my 64-bit Linux. Although my kernel (2.6.9-67.ELsmp) is not officially supported, I was able to run the examples. However, after running my examples using call graph, Vtune began to crash. Now I cannot even start Vtune. I keep getting error "JVM terminated, exit code = 1".
I checked the release nodes, and realized that I need to use Sun JVM 5/6 with Eclipse on 64-bit machines. So I installed Sun JVM 6 in my home directory. However, I can't make Eclipse touse it. I tried to use -vm argument of eclipse, but that didn't help.
Could someone help me with my problem? Thank you very much.
I don't think the kernel version will tell us whether you installed a distro which symlinks "java" to gcj, or the like; it certainly doesn't tell us whether you corrected that.
I do think the release notes fall short on facilitating installation, but that's not for me to judge, only to make suggestions.
Thanks for your reply. The output of "java -version" on my machine is:
java version "1.6.0_13"
Java SE Runtime Environment (build 1.6.0_13-b03)
Java HotSpot 64-Bit Server VM (build 11.3-b02, mixed mode)
But, it seems that eclipse is still using the jrockit jvm instead of Sun jvm, even though I added "-vm(path to sun jvm)" in eclipse.ini. The error message I got when running vtlec is:
JVM terminated. Exit code=1
The recommendation is for any user ifs/he failed torun vtlec with the JVM (default is intel/eclipsepackage/3.2.1_8/jrockit-R27.2.0-jre1.5.0_10/bin/java coming with VTune Analyzer package), not only forRed Hat* Enterprise Server.
Since theusers maynot use standard Linux* distro, but they should know what JVM isOK for their system, so that is not only for Sun* JVM, even for other JVM likeas IBM* JVM. (Note that the user has to know what JVM version can be supported in release notes)
The user also canselect anyEclipse* version instead of default coming from VTune Analyzer - just do,
export OTHER_ECLIPSE_BIN=Your Eclipse binary file, before running vtlec. (Usually we don't recommend this, that is only for some users who only like to use unique Eclipse* in the system)
Thanks. I did that and still could not start VTune. In $HOME/workspace/.metadata/.log, the following error is reported. Is this because I am using 64-bit linux? But I made sure to install 64-bit Sun JVM.
java.lang.UnsatisfiedLinkError: /local/lfs1/data/intel/eclipsepackage/3.2.1/eclipse/configuration/org.eclipse.osgi/bundles/93/1/.cp/libswt-pi-gtk-3235.so: /local/lfs1/data/intel/eclipsepackage/3.2.1/ec
lipse/configuration/org.eclipse.osgi/bundles/93/1/.cp/libswt-pi-gtk-3235.so: cannot open shared object file: No such file or directory (Possible cause: architecture word width mismatch)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
I suggest to try Sun* JVM 5.0.
Please understand that you are notworking on a standard Linux* distro which isa supportedoperation systemclaimed inrelease notes, so I can't reproduce this problem on my side. But you may find a standard Linux* versionto compare results. Hope it helps.
hmm... It seems that the problem is solved. I downloaded Sun JVM 5.0 32-bit, and now I can start Vtune. I'm still confused though. Aren't we supposed to use 64-bit JVM with 64-bit Linux?
Please see v9.1 Update 2's release notes - (I think that is also for JVM)