I use a batch-file that looks like that ------------------------------------- @echo off echo -------- echo Usage: %0 jdk_home tomcat_home (classic/hotspot/server) echo NOTE: You MAY NOT use spaces in the path names. If you know how echo to fix this, please tell me. echo JDK 1.3 does not come with hotpot server by default, you must echo install this seperately if you wish to use it. echo Example: %0 c:\progra~1\jdk c:\progra~1\tomcat hotspot echo --------
if "%1" == "" goto eof if "%2" == "" goto eof if "%3" == "" goto eof copy JavaService.exe %2\bin\TomcatNtService.exe > nul %2\bin\TomcatNtService.exe -install Tomcat %1\jre\bin\%3\jvm.dll -Djava.class.path=%2\bin\bootstrap.jar;%2\bin\servlet.jar;%1\lib\tools.jar -Dcatalina.home=%2 -Xmx128m -Xms30m -start org.apache.catalina.startup.Bootstrap -params start -stop org.apache.catalina.startup.Bootstrap;%2\common\lib\Opta2000.jar -params stop -out %2\logs\stdout.log -err %2\logs\stderr.log -current %2\bin goto eof :eof pause ------------------------------------- This file I call with the following batch-file ------------------------------------- echo installTomcat.bat [Der Pfad zum jdk] [Der Pfad zu Tomcat] [Typ der Virtual Machine] installTomcat.bat c:\jdk1.3.1 c:\tomcat classic pause ------------------------------------- When working with Nt-Service I had to use the classic VM to manage the resource-consumpsion. mit freundlichen Grussen Galexis AG Beat Friedli . SW-Entwicklung (DDIS/ASW) Grubenstrasse 11 . CH-3322 Schoenbuehl tel: +41 (0)31 858 72 32 . fax: +41 (0)31 858 78 81 > -----Ursprungliche Nachricht----- > Von: Tia Haenni [mailto:[EMAIL PROTECTED]] > Gesendet: Donnerstag, 6. Juni 2002 23:39 > An: Tomcat Users List > Betreff: Tomcat 4.0.1 and memory usage > > > I have searched the archives for this topic, but I need more > information > to understand. I need to limit the amount of memory used by > Tomcat. I > have Tomcat 4.0.1 running as an nt service on a Windows 2000 > server box > with redirects coming from IIS 5.0. I heard of using java > -verbosegc to > monitor gc, but as the service points at > <tomcat_home>\bin\tomcat.exe, I > don't know where this should be set. I understand the concept > of setting > for the JVM -Xmx###m and -Xms###m where ### is the amount of RAM to > allocate for Tomcat, but again I do not know where this is > set. Please > help. TIA > > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
