AW: How to increase memory

2004-07-02 Thread Gunnar Pörschke
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]



Re: AW: How to increase memory

2004-07-02 Thread Pete Stokes
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]


Re: AW: How to increase memory

2004-07-02 Thread alu, artifex
as i stated before: try adding the following line in the startup.bat file
set JAVA_OPTS=-Xms32m -Xmx512m
you can add it at the very first line, before (or shortly after) the 
@echo off statement.

Still it seems to be very slow.
maybe you don't face memory problems.
you can use windows task manager to determine the memory usage of 
tomcat. look for a process
called java.exe and see how much memory it is using.

art
ps: falls du noch ausführlichere hilfe auf deutsch brauchst - mail an 
mich =)

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]


Re: AW: How to increase memory

2004-07-02 Thread Thilo Krawietz
Hi Gunnar,
if you added these options in CATALINA_OPTS, its not necessary to place 
it also in JAVA_OPTS. Both variables are attached to 'java' command at 
the bottom of catalina.bat (you can see this in the bottom of 
catalina.bat at the line commencing with the %EXECJAVA% statement)

But if this command did not increase performance, i guess that your 
problem is not related to a lack of memory. What type of machine are you 
using?

Regards,
Thilo

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]