You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Siddesh Prabhu <sp...@yahoo.com> on 2006/05/19 14:22:16 UTC
settingheap sizes for JVM in tomcat
hi ppl,
Is there any criteria/way to determine the suitable heap sizes ( -Xms nad -Xmx ) for JVM in tomcat ??
Thanks in advance
Siddesh
---------------------------------
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.
Re: settingheap sizes for JVM in tomcat
Posted by Franck Borel <bo...@ub.uni-freiburg.de>.
> Is there any criteria/way to determine the suitable heap sizes ( -Xms nad -Xmx ) for JVM in tomcat ??
>
Add folling line in your catalina.sh
CATALINA_OPTS=-Xms512 -Xmx1024
or
JAVA_OPTS=-Xms512 -Xmx1024
Normally the JVM allocates an initial size of 512 MB (Java 1.5). If you
need more then this amount of memory you can set the minimum size at 512
and the maximum at 1024. This should be enough for most applications
running on tomcat. To set the maximum size of memory is allways a good idea.
-- Franck
>
> Thanks in advance
> Siddesh
>
>
>
>
> ---------------------------------
> Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.
>
--
====================================================================
Dipl.-Hyd. Franck Borel Universitaetsbibliothek Freiburg
EMail: borel@ub.uni-freiburg.de EDV-Dezernat
Tel. : +49-761 / 203-3908 Werthmannplatz 2 | Postfach 1629
Fax : +49-761 / 203-3987 79098 Freiburg | 79016 Freiburg