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?
Is that not something to do with Sun defining a server as a machine with two or more processors and 2Gb+ of RAM
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.
-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.
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.
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, 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.
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.