9

Possible Duplicate:
Real differences between “java -server” and “java -client”?

I've seen the argument "-server" used as a command line argument for java.exe:

java.exe -server MyClass

but no matter how hard I searched the internet I found no documentation as to what exactly it does. Can anyone explain?

Community
  • 1
  • 1
Savvas Dalkitsis
  • 11,251
  • 15
  • 64
  • 103

1 Answers1

18

-server

Select the Java HotSpot Server VM. On a 64-bit capable jdk only the Java HotSpot Server VM is supported so the -server option is implicit. This is subject to change in a future release.

Basically, the server VM does stuff in a different way to the client VM. It has different styles of garbage collection, and it may take longer to load up but generally has higher throughput.

Community
  • 1
  • 1
Chris Dennett
  • 21,982
  • 8
  • 55
  • 84