You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Bill Davidson <bi...@gmail.com> on 2009/02/06 02:29:33 UTC
Should I use the -server switch?
Tomcat 6.0.18
JVM: Sun 1.6.0_11 64-bit for Linux
What does this switch really do anyway? The name implies it's
for server programs but I can't find a good explanation.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Should I use the -server switch?
Posted by Bill Davidson <bi...@gmail.com>.
Caldarale, Charles R wrote:
> Most of the 64-bit Sun JVMs come only in -server mode, no -client version. Run "java -version" (without the quotes) to see what the default mode is.
Checking that...
$ ./java -version
java version "1.6.0_11"
Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
Java HotSpot(TM) 64-Bit Server VM (build 11.0-b16, mixed mode)
So no need for the switch, since it's already doing that. Thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: Should I use the -server switch?
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Bill Davidson [mailto:billdsd@gmail.com]
> Subject: Should I use the -server switch?
>
> Tomcat 6.0.18
> JVM: Sun 1.6.0_11 64-bit for Linux
Most of the 64-bit Sun JVMs come only in -server mode, no -client version. Run "java -version" (without the quotes) to see what the default mode is.
> What does this switch really do anyway?
There are two byte-code to native compilers in the JVM, called client and server (or C1 and C2, internally). The C1 compiler focuses on fast compilations, whereas C2 tries to generate the most optimum code. The C2 compiler will actually recompile methods multiple times to improve optimization as it learns more about how methods are being used. C2-generated code is often 10-15% faster than C1 code, but it takes a *lot* longer to compile things.
The current HotSpot JVMs only allow you to select one or the other mode, and you're stuck with it for the life of that JVM execution. Sun is moving the JVM towards tiered compilations, where both the C1 and C2 compilers will work together, with C1 being used initially, and C2 applied to heavily used pieces of the application.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org