Skip to main content

Glassfish runs with -client hotspot by default?

6 replies [Last post]
moazamraja
Offline
Joined: 2003-06-11

Hi all, it seems that Glassfish runs with the "-client" JVM option by default, at least on OS X. Any reason for this, does -server not perform as well?

-M

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
stvconsultants
Offline
Joined: 2006-03-06

Is that not something to do with Sun defining a server as a machine with two or more processors and 2Gb+ of RAM

moazamraja
Offline
Joined: 2003-06-11

While it's true that Sun is classifying server class machines in that category, this only happens when neither -client nor -server are specified. Other than that, it is left for the application owner/provider to figure out what is best.

Plus, it's quite possible that I might be running on a 'server-class' machine, but the -client flag will override that and still run the client VM.

-M

alexismp
Offline
Joined: 2005-01-06

-client has to do with startup time and perceived performance for people trying out GlassFish.
I'm pretty sure you can change it to -server.

moazamraja
Offline
Joined: 2003-06-11

Hi Alexismp,

I know that I can change the option. I just wanted to find out if there was a major reason that -client was chosen as the default option, just in case some benchmarks have already been done.

-M

dochez
Offline
Joined: 2003-06-10

Indeed we have done performance test and just like Alexis said, -client was giving us better startup time than -server which we percieved was very important to PE users.

I am not sure if we have documents left from that study we could share but if you are really interested, I can make inquiries.

Jerome

moazam
Offline
Joined: 2004-03-04

Jerome, excellent! Thanks for the reply. I just wanted to see what the reasoning behind it was. I'll end up running with -server on my test machine, but -client on my dev machine.

-M