8/20/09

64 bit or 32 bit JVM?

How to know your WAS version is 32 bit or 64 bit?
This is a machine which has WAS 64 bit
$ ./java -d64 -version
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (IBM build 1.5.0_06-erdist-20060404 20060511)
Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_06-erdist-20060404, mixed mode)
IBM Java ORB build orb50-20060511a (SR2)
XML build XSLT4J Java 2.7.4
XML build IBM JAXP 1.3.5
XML build XML4J 4.4.5

This is a machine which has WAS 32bit
$ ./java -d64 -version
execv(): No such file or directory
Error trying to exec /software/opt/IBM/WebSphere/AppServer/java/jre/bin/sparcv9/java.
Check if file exists and permissions are set correctly.
Failed to start a 64-bit JVM process from a 32-bit JVM.
Verify all necessary J2SE components have been installed.
(Solaris SPARC 64-bit components must be installed after 32-bit components.)

So acid Test is -
goto App Server javahome
/path/to/washome/java/jre/bin
./java -d64 -version

if it is 64 bit, it returns with version info.
otherwise returns with no such file or directory.

1 comment:

Bhãskar Rãmarãju said...

Detailed IFix information: No IFixes applied to this build
Host Operating System is SunOS, version 5.10
Java version = 1.5.0_06, Java Compiler = null, Java VM name = Java HotSpot(TM) 64-Bit Server VM
was.install.root = /software/IBM/WebSphere61/AppServer
user.install.root = /software/IBM/WebSphere61/AppServer/profiles/AppSrv01
Java Home = /software/IBM/WebSphere61/AppServer/java/jre
ws.ext.dirs = /software/IBM/WebSphere61/AppServer/java/lib:/software/IBM/WebSphere61/AppServer/p