RE: Still having OutOfMemory Problems (Tomcat 4.1.31)

2005-01-18 Thread Dale, Matt

If it is taking these settings then either those are not enough or you are 
running out space in the permanent generation.

Use -XX:MaxPermSize=128m to boost the max size of it.

-Original Message-
From: David Johnson [mailto:[EMAIL PROTECTED]
Sent: 17 January 2005 17:52
To: Tomcat Users List
Subject: Still having OutOfMemory Problems (Tomcat 4.1.31)


HI all.

Well I'm still getting my out of memory problem fairly consistently
(again) using Tomcat 4.1.31 with my Struts application.

When I look st the memory usage, it says tomcat is using about 110k of
memory for the VM, but that's just looking at the task manager.

Tomcat is installed as a service using a bat file (follows). Note the
-Xms128M and -Xmx512M options are set...if doesnt seem to matter what
I set these options toeven if I set them to 32m/64m!

How can I tell if tomcat is REALLY using those settings? It doesnt
seem to be

Thanks

-
install.bat:

@SET JAVA_HOME=C:\j2sdk_1_4_0_2
@SET TOMCAT_HOME=C:\Tomcat4.1
@SET TOMCAT_JVM=%JAVA_HOME%\jre\bin\client\jvm.dll
@SET 
TOMCAT_CLASSPATH=%TOMCAT_HOME%\bin\bootstrap.jar;%TOMCAT_HOME%\common\lib\servlet.jar
@SET TOMCAT_ENDORSED=%TOMCAT_HOME%\common\endorsed
@SET TOMCAT_LOG=%TOMCAT_HOME%\logs\stdout.log
@SET TOMCAT_ERR_LOG=%TOMCAT_HOME%\logs\stderr.log

%TOMCAT_HOME%\bin\tomcat.exe -install Apache Tomcat 4.1.31
%TOMCAT_JVM% -Djava.class.path=%TOMCAT_CLASSPATH% -DXms128M -DXmx512M 
-DXX:+PrintTenuringDistribution -DXX:+PrintGCDetails -Xverbosegc
-Djava.endorsed.dirs=%TOMCAT_ENDORSED% -Dcatalina.home=%TOMCAT_HOME%
-start org.apache.catalina.startup.BootstrapService -params start
-stop org.apache.catalina.startup.BootstrapService -params stop -out
%TOMCAT_LOG% -err %TOMCAT_ERR_LOG%

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

Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not 
the intended recipient or the person responsible for delivering to the intended 
recipient, be advised that you have received this E-mail in error and that any 
use or copying is strictly prohibited. If you have received this E-mail in 
error please notify the beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual 
sender and not beCogent Ltd. You must take full responsibility for virus 
checking this email and any attachments.
Please note that the content of this email or any of its attachments may 
contain data that falls within the scope of the Data Protection Acts and that 
you must ensure that any handling or processing of such data by you is fully 
compliant with the terms and provisions of the Data Protection Act 1984 and 
1998.


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

Still having OutOfMemory Problems (Tomcat 4.1.31)

2005-01-17 Thread David Johnson
HI all.

Well I'm still getting my out of memory problem fairly consistently
(again) using Tomcat 4.1.31 with my Struts application.

When I look st the memory usage, it says tomcat is using about 110k of
memory for the VM, but that's just looking at the task manager.

Tomcat is installed as a service using a bat file (follows). Note the
-Xms128M and -Xmx512M options are set...if doesnt seem to matter what
I set these options toeven if I set them to 32m/64m!

How can I tell if tomcat is REALLY using those settings? It doesnt
seem to be

Thanks

-
install.bat:

@SET JAVA_HOME=C:\j2sdk_1_4_0_2
@SET TOMCAT_HOME=C:\Tomcat4.1
@SET TOMCAT_JVM=%JAVA_HOME%\jre\bin\client\jvm.dll
@SET 
TOMCAT_CLASSPATH=%TOMCAT_HOME%\bin\bootstrap.jar;%TOMCAT_HOME%\common\lib\servlet.jar
@SET TOMCAT_ENDORSED=%TOMCAT_HOME%\common\endorsed
@SET TOMCAT_LOG=%TOMCAT_HOME%\logs\stdout.log
@SET TOMCAT_ERR_LOG=%TOMCAT_HOME%\logs\stderr.log

%TOMCAT_HOME%\bin\tomcat.exe -install Apache Tomcat 4.1.31
%TOMCAT_JVM% -Djava.class.path=%TOMCAT_CLASSPATH% -DXms128M -DXmx512M 
-DXX:+PrintTenuringDistribution -DXX:+PrintGCDetails -Xverbosegc
-Djava.endorsed.dirs=%TOMCAT_ENDORSED% -Dcatalina.home=%TOMCAT_HOME%
-start org.apache.catalina.startup.BootstrapService -params start
-stop org.apache.catalina.startup.BootstrapService -params stop -out
%TOMCAT_LOG% -err %TOMCAT_ERR_LOG%

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



RE: Still having OutOfMemory Problems (Tomcat 4.1.31)

2005-01-17 Thread David Vandaele
Try printing out this:
Runtime.getRuntime().freeMemory():
Runtime.getRuntime().maxMemory();

Check out the API if you want to know the exact meaning of these methods, but 
they are pretty obvious I think.
Now print these somewhere you know you'll get before the OutOfMemError occurs, 
or some place like the service() method or something.

David

-Original Message-
From: David Johnson [mailto:[EMAIL PROTECTED]
Sent: maandag 17 januari 2005 18:52
To: Tomcat Users List
Subject: Still having OutOfMemory Problems (Tomcat 4.1.31)


HI all.

Well I'm still getting my out of memory problem fairly consistently
(again) using Tomcat 4.1.31 with my Struts application.

When I look st the memory usage, it says tomcat is using about 110k of
memory for the VM, but that's just looking at the task manager.

Tomcat is installed as a service using a bat file (follows). Note the
-Xms128M and -Xmx512M options are set...if doesnt seem to matter what
I set these options toeven if I set them to 32m/64m!

How can I tell if tomcat is REALLY using those settings? It doesnt
seem to be

Thanks

-
install.bat:

@SET JAVA_HOME=C:\j2sdk_1_4_0_2
@SET TOMCAT_HOME=C:\Tomcat4.1
@SET TOMCAT_JVM=%JAVA_HOME%\jre\bin\client\jvm.dll
@SET 
TOMCAT_CLASSPATH=%TOMCAT_HOME%\bin\bootstrap.jar;%TOMCAT_HOME%\common\lib\servlet.jar
@SET TOMCAT_ENDORSED=%TOMCAT_HOME%\common\endorsed
@SET TOMCAT_LOG=%TOMCAT_HOME%\logs\stdout.log
@SET TOMCAT_ERR_LOG=%TOMCAT_HOME%\logs\stderr.log

%TOMCAT_HOME%\bin\tomcat.exe -install Apache Tomcat 4.1.31
%TOMCAT_JVM% -Djava.class.path=%TOMCAT_CLASSPATH% -DXms128M -DXmx512M 
-DXX:+PrintTenuringDistribution -DXX:+PrintGCDetails -Xverbosegc
-Djava.endorsed.dirs=%TOMCAT_ENDORSED% -Dcatalina.home=%TOMCAT_HOME%
-start org.apache.catalina.startup.BootstrapService -params start
-stop org.apache.catalina.startup.BootstrapService -params stop -out
%TOMCAT_LOG% -err %TOMCAT_ERR_LOG%

-
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: Still having OutOfMemory Problems (Tomcat 4.1.31)

2005-01-17 Thread reynir
you should try using small m like -Xmx512m - this one.
hope it helps
-reynir
David Johnson wrote:
HI all.
Well I'm still getting my out of memory problem fairly consistently
(again) using Tomcat 4.1.31 with my Struts application.
When I look st the memory usage, it says tomcat is using about 110k of
memory for the VM, but that's just looking at the task manager.
Tomcat is installed as a service using a bat file (follows). Note the
-Xms128M and -Xmx512M options are set...if doesnt seem to matter what
I set these options toeven if I set them to 32m/64m!
How can I tell if tomcat is REALLY using those settings? It doesnt
seem to be
Thanks
-
install.bat:
@SET JAVA_HOME=C:\j2sdk_1_4_0_2
@SET TOMCAT_HOME=C:\Tomcat4.1
@SET TOMCAT_JVM=%JAVA_HOME%\jre\bin\client\jvm.dll
@SET 
TOMCAT_CLASSPATH=%TOMCAT_HOME%\bin\bootstrap.jar;%TOMCAT_HOME%\common\lib\servlet.jar
@SET TOMCAT_ENDORSED=%TOMCAT_HOME%\common\endorsed
@SET TOMCAT_LOG=%TOMCAT_HOME%\logs\stdout.log
@SET TOMCAT_ERR_LOG=%TOMCAT_HOME%\logs\stderr.log
%TOMCAT_HOME%\bin\tomcat.exe -install Apache Tomcat 4.1.31
%TOMCAT_JVM% -Djava.class.path=%TOMCAT_CLASSPATH% -DXms128M -DXmx512M 
-DXX:+PrintTenuringDistribution -DXX:+PrintGCDetails -Xverbosegc
-Djava.endorsed.dirs=%TOMCAT_ENDORSED% -Dcatalina.home=%TOMCAT_HOME%
-start org.apache.catalina.startup.BootstrapService -params start
-stop org.apache.catalina.startup.BootstrapService -params stop -out
%TOMCAT_LOG% -err %TOMCAT_ERR_LOG%

-
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: Still having OutOfMemory Problems (Tomcat 4.1.31)

2005-01-17 Thread Larry Isaacs
David,

-D defines System properties, -X defines vendor specific JVM options.
Thus, -DXms128M is incorrect.  It should be just -Xms128M.  Same for
the other -DX arguments.

Cheers,
Larry 

 -Original Message-
 From: David Johnson [mailto:[EMAIL PROTECTED] 
 Sent: Monday, January 17, 2005 12:52 PM
 To: Tomcat Users List
 Subject: Still having OutOfMemory Problems (Tomcat 4.1.31)
 
 HI all.
 
 Well I'm still getting my out of memory problem fairly consistently
 (again) using Tomcat 4.1.31 with my Struts application.
 
 When I look st the memory usage, it says tomcat is using about 110k of
 memory for the VM, but that's just looking at the task manager.
 
 Tomcat is installed as a service using a bat file (follows). Note the
 -Xms128M and -Xmx512M options are set...if doesnt seem to matter what
 I set these options toeven if I set them to 32m/64m!
 
 How can I tell if tomcat is REALLY using those settings? It doesnt
 seem to be
 
 Thanks
 
 -
 install.bat:
 
 @SET JAVA_HOME=C:\j2sdk_1_4_0_2
 @SET TOMCAT_HOME=C:\Tomcat4.1
 @SET TOMCAT_JVM=%JAVA_HOME%\jre\bin\client\jvm.dll
 @SET 
 TOMCAT_CLASSPATH=%TOMCAT_HOME%\bin\bootstrap.jar;%TOMCAT_HOME%
 \common\lib\servlet.jar
 @SET TOMCAT_ENDORSED=%TOMCAT_HOME%\common\endorsed
 @SET TOMCAT_LOG=%TOMCAT_HOME%\logs\stdout.log
 @SET TOMCAT_ERR_LOG=%TOMCAT_HOME%\logs\stderr.log
 
 %TOMCAT_HOME%\bin\tomcat.exe -install Apache Tomcat 4.1.31
 %TOMCAT_JVM% -Djava.class.path=%TOMCAT_CLASSPATH% -DXms128M -DXmx512M 
 -DXX:+PrintTenuringDistribution -DXX:+PrintGCDetails -Xverbosegc
 -Djava.endorsed.dirs=%TOMCAT_ENDORSED% -Dcatalina.home=%TOMCAT_HOME%
 -start org.apache.catalina.startup.BootstrapService -params start
 -stop org.apache.catalina.startup.BootstrapService -params stop -out
 %TOMCAT_LOG% -err %TOMCAT_ERR_LOG%
 
 -
 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: Still having OutOfMemory Problems (Tomcat 4.1.31)

2005-01-17 Thread David Johnson
I think that was the problem My new batch file is 

#

@SET JAVA_HOME=C:\j2sdk_1_4_0_2
@SET TOMCAT_HOME=C:\Tomcat4.1
@SET TOMCAT_JVM=%JAVA_HOME%\jre\bin\client\jvm.dll
@SET 
TOMCAT_CLASSPATH=%TOMCAT_HOME%\bin\bootstrap.jar;%TOMCAT_HOME%\common\lib\servlet.jar
@SET TOMCAT_ENDORSED=%TOMCAT_HOME%\common\endorsed
@SET TOMCAT_LOG=%TOMCAT_HOME%\logs\stdout.log
@SET TOMCAT_ERR_LOG=%TOMCAT_HOME%\logs\stderr.log

%TOMCAT_HOME%\bin\tomcat.exe -install Apache Tomcat 4.1.31
%TOMCAT_JVM% -Djava.class.path=%TOMCAT_CLASSPATH% -Xms64m -Xmx512m 
-DXX:+PrintTenuringDistribution -DXX:+PrintGCDetails -Xverbosegc
-Djava.endorsed.dirs=%TOMCAT_ENDORSED% -Dcatalina.home=%TOMCAT_HOME%
-start org.apache.catalina.startup.BootstrapService -params start
-stop org.apache.catalina.startup.BootstrapService -params stop -out
%TOMCAT_LOG% -err %TOMCAT_ERR_LOG%



On Mon, 17 Jan 2005 13:08:05 -0500, David Johnson [EMAIL PROTECTED] wrote:
 I'll give it a try. thanks!
 
 
 On Mon, 17 Jan 2005 13:07:26 -0500, Larry Isaacs [EMAIL PROTECTED] wrote:
  David,
 
  -D defines System properties, -X defines vendor specific JVM options.
  Thus, -DXms128M is incorrect.  It should be just -Xms128M.  Same for
  the other -DX arguments.
 
  Cheers,
  Larry
 
   -Original Message-
   From: David Johnson [mailto:[EMAIL PROTECTED]
   Sent: Monday, January 17, 2005 12:52 PM
   To: Tomcat Users List
   Subject: Still having OutOfMemory Problems (Tomcat 4.1.31)
  
   HI all.
  
   Well I'm still getting my out of memory problem fairly consistently
   (again) using Tomcat 4.1.31 with my Struts application.
  
   When I look st the memory usage, it says tomcat is using about 110k of
   memory for the VM, but that's just looking at the task manager.
  
   Tomcat is installed as a service using a bat file (follows). Note the
   -Xms128M and -Xmx512M options are set...if doesnt seem to matter what
   I set these options toeven if I set them to 32m/64m!
  
   How can I tell if tomcat is REALLY using those settings? It doesnt
   seem to be
  
   Thanks
  
   -
   install.bat:
  
   @SET JAVA_HOME=C:\j2sdk_1_4_0_2
   @SET TOMCAT_HOME=C:\Tomcat4.1
   @SET TOMCAT_JVM=%JAVA_HOME%\jre\bin\client\jvm.dll
   @SET
   TOMCAT_CLASSPATH=%TOMCAT_HOME%\bin\bootstrap.jar;%TOMCAT_HOME%
   \common\lib\servlet.jar
   @SET TOMCAT_ENDORSED=%TOMCAT_HOME%\common\endorsed
   @SET TOMCAT_LOG=%TOMCAT_HOME%\logs\stdout.log
   @SET TOMCAT_ERR_LOG=%TOMCAT_HOME%\logs\stderr.log
  
   %TOMCAT_HOME%\bin\tomcat.exe -install Apache Tomcat 4.1.31
   %TOMCAT_JVM% -Djava.class.path=%TOMCAT_CLASSPATH% -DXms128M -DXmx512M
   -DXX:+PrintTenuringDistribution -DXX:+PrintGCDetails -Xverbosegc
   -Djava.endorsed.dirs=%TOMCAT_ENDORSED% -Dcatalina.home=%TOMCAT_HOME%
   -start org.apache.catalina.startup.BootstrapService -params start
   -stop org.apache.catalina.startup.BootstrapService -params stop -out
   %TOMCAT_LOG% -err %TOMCAT_ERR_LOG%
  
   -
   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: Still having OutOfMemory Problems (Tomcat 4.1.31)

2005-01-17 Thread Larry Isaacs
The -DX problem applies to the -DXX arguments too.

Larry

 -Original Message-
 From: David Johnson [mailto:[EMAIL PROTECTED] 
 Sent: Monday, January 17, 2005 1:16 PM
 To: Tomcat Users List
 Subject: Re: Still having OutOfMemory Problems (Tomcat 4.1.31)
 
 I think that was the problem My new batch file is 
 
 #
 
 @SET JAVA_HOME=C:\j2sdk_1_4_0_2
 @SET TOMCAT_HOME=C:\Tomcat4.1
 @SET TOMCAT_JVM=%JAVA_HOME%\jre\bin\client\jvm.dll
 @SET 
 TOMCAT_CLASSPATH=%TOMCAT_HOME%\bin\bootstrap.jar;%TOMCAT_HOME%
 \common\lib\servlet.jar
 @SET TOMCAT_ENDORSED=%TOMCAT_HOME%\common\endorsed
 @SET TOMCAT_LOG=%TOMCAT_HOME%\logs\stdout.log
 @SET TOMCAT_ERR_LOG=%TOMCAT_HOME%\logs\stderr.log
 
 %TOMCAT_HOME%\bin\tomcat.exe -install Apache Tomcat 4.1.31
 %TOMCAT_JVM% -Djava.class.path=%TOMCAT_CLASSPATH% -Xms64m -Xmx512m 
 -DXX:+PrintTenuringDistribution -DXX:+PrintGCDetails -Xverbosegc
 -Djava.endorsed.dirs=%TOMCAT_ENDORSED% -Dcatalina.home=%TOMCAT_HOME%
 -start org.apache.catalina.startup.BootstrapService -params start
 -stop org.apache.catalina.startup.BootstrapService -params stop -out
 %TOMCAT_LOG% -err %TOMCAT_ERR_LOG%
 
 
 
 On Mon, 17 Jan 2005 13:08:05 -0500, David Johnson 
 [EMAIL PROTECTED] wrote:
  I'll give it a try. thanks!
  
  
  On Mon, 17 Jan 2005 13:07:26 -0500, Larry Isaacs 
 [EMAIL PROTECTED] wrote:
   David,
  
   -D defines System properties, -X defines vendor 
 specific JVM options.
   Thus, -DXms128M is incorrect.  It should be just 
 -Xms128M.  Same for
   the other -DX arguments.
  
   Cheers,
   Larry
  
-Original Message-
From: David Johnson [mailto:[EMAIL PROTECTED]
Sent: Monday, January 17, 2005 12:52 PM
To: Tomcat Users List
Subject: Still having OutOfMemory Problems (Tomcat 4.1.31)
   
HI all.
   
Well I'm still getting my out of memory problem fairly 
 consistently
(again) using Tomcat 4.1.31 with my Struts application.
   
When I look st the memory usage, it says tomcat is 
 using about 110k of
memory for the VM, but that's just looking at the task manager.
   
Tomcat is installed as a service using a bat file 
 (follows). Note the
-Xms128M and -Xmx512M options are set...if doesnt seem 
 to matter what
I set these options toeven if I set them to 32m/64m!
   
How can I tell if tomcat is REALLY using those 
 settings? It doesnt
seem to be
   
Thanks
   
-
install.bat:
   
@SET JAVA_HOME=C:\j2sdk_1_4_0_2
@SET TOMCAT_HOME=C:\Tomcat4.1
@SET TOMCAT_JVM=%JAVA_HOME%\jre\bin\client\jvm.dll
@SET
TOMCAT_CLASSPATH=%TOMCAT_HOME%\bin\bootstrap.jar;%TOMCAT_HOME%
\common\lib\servlet.jar
@SET TOMCAT_ENDORSED=%TOMCAT_HOME%\common\endorsed
@SET TOMCAT_LOG=%TOMCAT_HOME%\logs\stdout.log
@SET TOMCAT_ERR_LOG=%TOMCAT_HOME%\logs\stderr.log
   
%TOMCAT_HOME%\bin\tomcat.exe -install Apache Tomcat 4.1.31
%TOMCAT_JVM% -Djava.class.path=%TOMCAT_CLASSPATH% 
 -DXms128M -DXmx512M
-DXX:+PrintTenuringDistribution -DXX:+PrintGCDetails -Xverbosegc
-Djava.endorsed.dirs=%TOMCAT_ENDORSED% 
 -Dcatalina.home=%TOMCAT_HOME%
-start org.apache.catalina.startup.BootstrapService 
 -params start
-stop org.apache.catalina.startup.BootstrapService 
 -params stop -out
%TOMCAT_LOG% -err %TOMCAT_ERR_LOG%
   

 -
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]