How to judge whether this is a 32 bit jvm or 64 bit jvm?

 

 

[Solution 1]

java –version command after jdk1.6 can give you 32 bit or 64 bit info.

Before jdk1.5, doesn’t contain this info.

 

[Solution 2]

In linux env, run this command to check .

 

file  /usr/java/jre1.5.0_09/bin/java

 

[Solution 3]

32 bit jvm has a limitation of memory usage of less than 2G or 4G. Can’t actually remember.

Can verify using a big memory set up.

-ms4096M –mx4096M

你可能感兴趣的:(java,jvm,linux,UP)