Hi.

When using the jk_nt_service.exe you need to setup the wrapper.properties
file.

The very last line is where you set any additional VM parameters - use that.
Thus you would change it from:

wrapper.cmd_line=$(wrapper.javabin) -classpath $(wrapper.class_path)
$(wrapper.startup_class) -config $(wrapper.server_xml) -home
$(wrapper.tomcat_home)

To:

wrapper.cmd_line=$(wrapper.javabin) -Xms128m -Xmx512m -classpath
$(wrapper.class_path) $(wrapper.startup_class) -config $(wrapper.server_xml)
-home $(wrapper.tomcat_home)

Hope that helps!

Regards,

Carl

-----Original Message-----
From: Baldacchini Marco [mailto:[EMAIL PROTECTED] 
Sent: 06 April 2004 03:13 PM
To: Tomcat Users List
Subject: Re: Tomcat Java OutOfMemory Error


I have already tried but it does not work (I have tried also TOMCAT_OPTS as 
environmental variable), remains set up to the default (64MB). Thanks 

shyam Scrive: 

> Hi,
> I not sure about tomcat 3.2.1. In tomcat 4 I have used the JAVA_OPTS . 
> I set JAVA_OPTS as my environmental variable and that was it. Hope 
> this helps you shyam
> 
>  
> 
> -----Original Message-----
> From: Baldacchini Marco [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 06, 2004 5:41 AM
> To: [EMAIL PROTECTED]
> Subject: Tomcat Java OutOfMemory Error 
> 
> Hi,
> I'm running Tomcat 3.2.1 on Windows 2000 Server as service with
> jk_nt_service.exe utility.
> I receive java.lang.OutOfMemory error in my JSP page.
> I need to increment memory for JVM to 512 MB by setting -Xms512m
> -Xmx512m.
> Where I do it?
> Thanks in advance.  
> 
> Marco
> 
> ---------------------------------------------------------------------
> 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]

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

Reply via email to