tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Hirschhorn <Gary.Hirschh...@fetch.com>
Subject Tomcat 5.0.27 Win2k sp4, service.bat JVM Options
Date Wed, 18 Aug 2004 20:32:40 GMT
I made the following changes to customize service.bat for 5.0.27 running
under Windows XP

 

1) To allow allow compilation of JSPs, changed PR_CLASSPATH to include J2SDK
tools.jar:

Before:

set PR_CLASSPATH=%CATALINA_HOME%\bin\bootstrap.jar

After:

set PR_CLASSPATH=%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\bin\bootstrap.jar

 

2a) To use a specific JVM location, changed jvm option from 'auto'

2b) To make service automatic instead of manual, added Startup option

2c) To use customized server.xml file and pass multiple parameters to
StartClass, changed StartParams by separating additional values by
semi-colons:

Before:

"%EXECUTABLE%" //IS//%SERVICE_NAME% --Jvm auto --StartClass
org.apache.catalina.startup.Bootstrap --StopClass
org.apache.catalina.startup.Bootstrap --StartParams start --StopParams stop

After:

"%EXECUTABLE%" //IS//%SERVICE_NAME% --Jvm
"%JAVA_HOME%\jre\bin\server\jvm.dll" --StartClass
org.apache.catalina.startup.Bootstrap --StopClass
org.apache.catalina.startup.Bootstrap --StartParams
"-config;%CUSTOM_SERVERXML_FILE%;-nonaming;start" --StopParams stop--Startup
Automatic

 

3) To specify min and max memory limits, added extra jvm startup parameters 

Before:

"%EXECUTABLE%" //US//%SERVICE_NAME% --JvmOptions
"-Dcatalina.base=%CATALINA_BASE%;-Dcatalina.home=%CATALINA_HOME%;-Djava.endo
rsed.dirs=%CATALINA_HOME%\common\endorsed" --StartMode jvm --StopMode jvm

After:

"%EXECUTABLE%" //US//%SERVICE_NAME% --JvmOptions
"-Xms128M;-Xmx256M;-Dcatalina.base=%CATALINA_BASE%;-Dcatalina.home=%CATALINA
_HOME%;-Djava.endorsed.dirs=%CATALINA_HOME%\common\endorsed" --StartMode jvm
--StopMode jvm

 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message