tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hua Hou <...@handango.com>
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
set CATALINA_HOME=F:\TomCat41

REM Common properties
set JDK_LIB=%JDK_HOME%\jre\bin\server\jvm.dll
set
JVM_OPT=-Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar;%CATALINA_HOME%\
bin\servlet.jar;%JDK_HOME%\lib\tools.jar -Dcatalina.home=%CATALINA_HOME%
-Xmx256M -Xms256M -Duser.dir=%CATALINA_BASE%\conf
-Dcatalina.base=%CATALINA_BASE%
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%
%START_CLASS%  %START_PARAM% %STOP_CLASS%  %STOP_PARAM% %OUT_LOG_FILE%
%ERR_LOG_FILE%

============================================================================
==

-----Original Message-----
From: Mattos, John [mailto:jmattos@Indemand.com]
Sent: Tuesday, May 13, 2003 3:43 PM
To: 'tomcat-user@jakarta.apache.org'
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
-Djava.class.path=%2\bin\bootstrap.jar;%2\bin\servlet.jar;%1\lib\tools.jar
-Dcatalina.home=%2 -Dindemand.env=%INDEMAND_HOME%\indemand_env.properties
-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?

Help!

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

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


Mime
View raw message