On Thursday 25 November 2004 06:01, Lee Chin Khiong wrote:
> How to solve this ?

Add this line to your catalina.sh for unix:
JAVA_OPTS="-Xms128m -Xmx256m"

Add this line to you catalina.bat for Windows:
set JAVA_OPTS="-Xms128m -Xmx256m"

I normally add this line under the one that start JAVADIR.

This will set your minimum heap size -Xms to 128 MB and your memory -Xmx to 
256m.

You will have to tweak this setting to get the best results, sometimes if you 
set it too high, Tomcat will not start up (check you catalina.out file).

On our live server we have set this option to -Xms1024m and -Xmx2048m. The 
machine has 8GB of RAM so that is why we set it so high. :)

Q
-- 
Quinton Delpeche
Internal Systems Developer
Softline VIP

Telephone: +27 12 420 7000
Direct:    +27 12 420 7007
Facsimile: +27 12 420 7344

http://www.vippayroll.co.za/

Hindsight is an exact science.

Attachment: pgpI5uzi9N6EE.pgp
Description: PGP signature

Reply via email to