[FrontPage] [TitleIndex] [WordIndex

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
 java -version -client 

in the JRE package
 java -version -client 

JRE Server

in the JRE package
 java -version -server 

in JDK Package only!
 java -version -server 

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


CategoryDeegree2


2018-04-20 12:04