CATALINA_OPTS="%CATALINA_OPTS% -Xms1024m -Xmx2048m"   note quotes (need that 
ammendment in Linux, try something similar for Window$e if needed......)

Also, if you put a -Xloggc:/usr/local/tomcat/logs/gc.log     (check syntax with java 
-X help)

do Xloggc before and after changing memory size, then have a look if gc cycles change. 
You can use HPjtune to graphically see the cycles. Do you need to include the -server 
in the above string depending on your JVM ?  You want 3-10% max of cpu time in gc and 
periodic cycles. I'd say start from very low initial heap with a decent max setting 
and look at gc.

Anyway, 1GIG initial heap is massive - why u need it so big? I've got a very intensive 
app, and initial heap of 80m, max heap of 768 works fine. Remember, it's a combination 
of initial heap and max heap that determine your apps gc cycles.

Try look at using incremental gc ??

Whilst you are testing your app, check cpu usage to see it's not being killed, if so 
get better box.

Pete.








Gunnar Pörschke wrote:

Where do I have to add this? Also in the catalina.bat?
I tested set CATALINA_OPTS=%CATALINA_OPTS% -Xms1024m -Xmx2048m in
Catalona.bat as mentioned from Thilo Krawietz' email.

Still it seems to be very slow.

Thank you

Gunnar

-----Ursprüngliche Nachricht-----
Von: alu, artifex [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 1. Juli 2004 16:59
An: Tomcat Users List
Betreff: Re: How to increase memory



by setting the environment variable JAVA_OPTS to something like this: -Xms32m -Xmx512m
this will cause the vm to allocate 32m at startup and limits the maximum
java heap memory size to 512mb.


you can set the environment variable by adding the following command
somewhere at the beginning of startup.bat:

set JAVA_OPTS=-Xms32m -Xmx512m

art

Gunnar Pörschke wrote:



where and how do I increase memory (win2003Srv) for tomcat (4.1.30)?









---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to