ITeye博客

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

tomboxfan · 2009-08-24 13:33 · Java Basic · Java · UP · JVM · Linux · Markdown

[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

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。