You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Frank Uccello <fr...@phantomfiber.com> on 2008/10/27 21:11:06 UTC
configure the Heap Size
Is it possible to set the Heap size in the server.xml file and if so
what the syntax
Re: configure the Heap Size
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Frank,
Frank Uccello wrote:
> Is it possible to set the Heap size in the server.xml file
No.
> and if so what the syntax
You need to set a JVM startup parameter. This parameter is
JVM-dependent, but most JVMs use parameters of the form:
- -Xms<size> initial heap size
- -Xmx<size> max heap size
Note that <size> can be something like "512m" to specify that you'd like
516 megabytes of heap space.
If you run Tomcat from the command-line, you can set the JAVA_OPTS
environment variable in order to set the JVM parameters before running
catalina.bat/catalina.sh. If you use a Microsoft Windows service, you'll
need to use the service editor to set the parameters. This page might
help if you are running on Microsoft Windows:
http://tomcat.apache.org/tomcat-5.5-doc/windows-service-howto.html
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkkQr0UACgkQ9CaO5/Lv0PB+hQCgstd4cD6V6vj//5aRY9aazP2O
W4IAoKxdZWkFivy3MYCu20nrYvubCK25
=KlBj
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org