tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reynir Hübner <rey...@hugsmidjan.is>
Subject RE: Tomcat Out of memory
Date Thu, 23 Jan 2003 09:37:22 GMT
Nate, to increase the memory for your tomcat-running as service in NT / win2k/winXP you must
re-install the service.

You probably have noticed that the service does not start the catalina.bat file but the tomcat.exe.

You can uninstall the current service and install again by using tomcat.exe
Go to c:\jakarta-tomcat-4-1-18\bin\ and execute tomcat.exe to do so, you will need some parameters
(all in the same line): 

tomcat.exe -install "Apache Tomcat 4.1" "C:\java1_4_1\jre\bin\client\jvm.dll" -Xmx512m -Djava.class.path="C:\jakarta-tomcat-4-1-18\bin\bootstrap.jar"
-Dcatalina.home="C:\jakarta-tomcat-4-1-18"
-Djava.endorsed.dirs="C:\jakarta-tomcat-4-1-18\common\endorsed" -start org.apache.catalina.startup.BootstrapService
-params start -stop org.apache.catalina.startup.BootstrapService -params stop -out "C:\jakarta-tomcat-4-1-18\logs\stdout.log"
-err "C:\jakarta-tomcat-4-1-18\logs\stderr.log"


Then for instructions you can always run tomcat -? 

Hope that helps.
-reynir




> -----Original Message-----
> From: Nate [mailto:nmcminn@charter.net] 
> Sent: 22. janúar 2003 21:09
> To: Tomcat Users List
> Subject: Tomcat Out of memory
> 
> 
> We are running Tomcat 4.0.6 on Windows 2000 server using JDK 
> 1.4.0_01. Tomcat is set to run as a service.  In our 
> catalina.bat file we have set:
> 
> JAVA_OPTS= -server -Xms512m -Xmx512m
> 
> If I am not mistaken, this should start the VM in server 
> mode, and allocate 512MB of memory for it to use.  Our 
> application gets an out of memory error when the vm has used 
> about 64MB of memory, well short of what we have told it to 
> use.  Am I setting the JVM parameters in the right place, or 
> is my syntax perhaps incorrect?  When tomcat is run as a 
> service, is the catalina.bat startup script even called?
> 
> --Nate
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:tomcat-user-> unsubscribe@jakarta.apache.org>
> For 
> additional commands, 
> e-mail: <mailto:tomcat-user-help@jakarta.apache.org>
> 
> 

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message