5

How to use the 32-bit JVM on a 64 bits OS?

view full story
linux-howto

http://askubuntu.com – I have a 64-bit server with only 1 GiB of RAM (VM at Rackspace). I need to run a few instances of the JVM, and the 64 bit VMs are consuming too much RAM. I can't seem to find anyplace that tells me how to install the 32-bit packages of openjdk. When I run with -d32, I get told: # java -d32 -version This Java instance does not support a 32-bit JVM. Please install the desired version. When I run with -client, I still get the server VM: # java -client -version java version "1.6.0_22" OpenJDK Runtime Environment (IcedTea6 1.10.2) (6b22-1.10.2-0ubuntu1~11.04.1) OpenJDK 64-Bit Server VM (build 2 (HowTos)