Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to check the JVM bits ?

Status
Not open for further replies.

henryz

Programmer
Oct 3, 2001
33
AU
Hi,

I have a JVM installed on a Linux box, can someone tell, how to find if this is a 32 or 64 bits of JVM? How to check it? Where can I find/and download 64 bits 1.3.1 JRE?

Thanks,
Henry
 
On Linux, most likely you are running 32bit.

There is only 64bit version of Java on Itanium processors (last I checked).

For Sparc and RS6k there are 64bit versions.

HTH

 
That's what you guess, can you check somewhere, do you know any commands to confirm this?
 
try adding the -d64 bit flag...if it does not error out you are using 64bit JVM, if not 32bit it is...

 
Thanks SamBones, your command is checking the Linux kernel bits, not sure if it checks the JVM bits. Maybe it's easy to have a scenario, say two versions of JVM installed on a Linux server, one is 32 bits JVM, another is 64bits JVM. How can you differentiate them?
 
The 1.3.1 JRE is not available in 64 bit version.

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
If the OS is 32 bit only, it doesn't matter if the JVM is 32 or 64 bits. If the OS is 32 bits, you're living in a 32 bit world.

Hope this helps.
 
Hi SamBones,

The server I use is an Itanium (64bits) processor, so it's definitely in a 64 bits world.

Tried the command on my server box: getconf WORD_BIT

Interesting it returned with 32, which I think it's wrong. Maybe there is a bug there.

Thanks,
Henry
 
As I said before, the 1.3.1 JRE is only available in 32-bit - so this whole discussion is pointless !!!

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
Oh come on sedj, some of the best arguments/conversation are on pointless topics! [bigsmile]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top