tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: configure the Heap Size
Date Tue, 04 Nov 2008 20:23:33 GMT
-----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


Mime
View raw message