How 2 install Tomcat under CentOS

Installing, Configuring, Troubleshooting server daemons such as Web and Mail
Posts: 1015
Joined: 2006/06/10 18:27:44
Location: 32 4′N 34 47′E

Re: How 2 install Tomcat under CentOS

Post by yyagol » 2008/08/02 06:29:15

JAVA_OPTS is additional settings for java runtime env .
tuning this settings takes time and it depend on your application ,
and the life time of the application objects.
i'll explain this settings in general

[code]JAVA_OPTS="$JAVA_OPTS -Xmx800m -Xms800m -Xmn500m -Xss64k"[/code]
-Xmx = maximum heap size
-Xms = initial heap size
-Xmn = heap size for the young generation (objects)
-Xss = Reduces the default maximum thread stack size

This settings are not part of Tomcat install , but if you leave the default settings
most likely you will get exception : java heap size , if your server gets many hits.
to understand more of this settings in details ,read this tutorial from java.sun

Post Reply

Return to “CentOS 4 - Server Support”