In the Java Hotspot compiler, what the difference between initializing Java with -client
as opposed to -server
, and what are the pros/cons/caveats of each?
Asked
Active
Viewed 1,126 times
3

IAmYourFaja
- 55,468
- 181
- 466
- 756
1 Answers
5
Nice information can be found in Oracle Documentation and Java Hotspot VM FAQ. Acording to them, a Java HotSpot Server VM:
- Is intended for running server applications.
- Prefers to maximize operating speed instead of minimizing start-up time.
On the other side, a Java HotSpot Client VM:
- Is better suited for GUI applications
- Is intended to provide fast start-up times or small footprints.

Carlos Gavidia-Calderon
- 7,145
- 9
- 34
- 59
-
Also check http://docs.oracle.com/javase/7/docs/technotes/guides/vm/performance-enhancements-7.html the "tiered compilation" paragraph. – Luciano Apr 28 '12 at 03:22