tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hua Hou <>
Subject RE: Running Out of Memory, Tomcat running as a service...
Date Tue, 13 May 2003 21:04:31 GMT
I created the following script to install a windows service. Memory is set
in the JVM_OPT line.

Hope it helps.

@echo off

set JDK_HOME=F:\j2sdk141

REM Common properties
set JDK_LIB=%JDK_HOME%\jre\bin\server\jvm.dll
bin\servlet.jar;%JDK_HOME%\lib\tools.jar -Dcatalina.home=%CATALINA_HOME%
-Xmx256M -Xms256M -Duser.dir=%CATALINA_BASE%\conf
set START_CLASS=-start org.apache.catalina.startup.Bootstrap
set START_PARAM=-params start
set STOP_CLASS=-stop org.apache.catalina.startup.Bootstrap 
set STOP_PARAM=-params stop

REM Server specific variable
set CATALINA_BASE=F:\Tomcat41
set OUT_LOG_FILE=-out %CATALINA_BASE%\logs\MyServer_stdout.log
set ERR_LOG_FILE=-err %CATALINA_BASE%\logs\MyServer_stderr.log

%CATALINA_HOME%\bin\TmctServer.exe -install TomcatServer %JDK_LIB% %JVM_OPT%


-----Original Message-----
From: Mattos, John []
Sent: Tuesday, May 13, 2003 3:43 PM
To: ''
Subject: Running Out of Memory, Tomcat running as a service...

HI all,

I'm running tomcat as a service, installing it with the following command.

%2\bin\tomcat.exe -install %4 %1\jre\bin\%3\jvm.dll
-Dcatalina.home=%2 -Dindemand.env=%INDEMAND_HOME%\
-start org.apache.catalina.startup.Bootstrap -params start -stop
org.apache.catalina.startup.Bootstrap -params stop -out %2\logs\stdout.log
-err %2\logs\stderr.log

I know I have to add something like

-DJAVA_OPTS=-Xms128m -Xmx1536m

The question is WHERE do I add that in the above long command shich installs
Tomcat as a service?


Note %1-%4 are passed into the batch file as parameters...

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message