Some Java Tips
1. About JVM
Sun's Java has different Java Virtual Machines: One for the client, another one for servers. In order to get the right package with the right JVM, please note the following:
|
Linux |
Windows |
JRE Client |
in the JRE package |
in the JRE package |
JRE Server |
in the JRE package |
in JDK Package only! |
Example for Windows:
C:\Programme\Java\jdk1.5.0_04\jre\bin>java -server -version java version "1.5.0_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05) Java HotSpot(TM) Server VM (build 1.5.0_04-b05, mixed mode)
Example for Linux:
plum@pieto:/tmp/penb2/java5/bin$ java -server -version java version "1.5.0_13" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05) Java HotSpot(TM) Server VM (build 1.5.0_13-b05, mixed mode)
2. Java Tuning
http://java.sun.com/performance/reference/whitepapers/tuning.html