I've read that it's better to use 32 bit JDK on 64 bit Ubuntu so I installed jdk-7u9-linux-i586.tar.gz
there with libc6-i386
installed. When I run java -version
the following info is printed:
java version "1.7.0_09"
Java(TM) SE Runtime Environment (build 1.7.0_09-b05)
Java HotSpot(TM) Server VM (build 23.5-b02, mixed mode)
Also I've read that Client VM is better than Server VM at development computer. How do I set Hotspot to Client mode?
That may have been true 2 years ago, but 64-bit HotSpot works fine now, in development and in production, and has automatic pointer compression when you don't use a heap larger than around 24 GB.
As for the JIT mode, you select the server VM with -server (the default on most machines nowadays), and the client VM with -client.