You do NOT have to reinstall Tomcat.
It appears to be case sensitive so use -Xmx256m
/Thomas
"STOCKHOLM, Raymond" <[EMAIL PROTECTED]>
04-02-2004 18:12
Besvar venligst til "Tomcat Users List"
Til: "Tomcat Users List" <[EMAIL PROTECTED]>
cc:
Vedr.: RE: VM settings in windows service
You must re-install your tomcat service with the options you want.
To make sure your options are properly set, use regedit to check them :
HKEY_LOCAL_MACHINE
SYSTEM
CurrentControlSet
Services
Apache
Tomcat xxx
Parameters
look for JVM Option Number x
Try this script (after adapting your parameters) to install your service.
set JAVA_HOME=C:\j2sdk1.4.1_05
set CATALINA_HOME=C:\SOFTWARE\TOMCAT_4.1.18
set CATALINA_OPTS=-server -Xms750m -Xmx750m -XX:NewRatio=2 -Xconcurrentio
set PARAMETERS=%JAVA_HOME%\jre\bin\server\jvm.dll
set PARAMETERS=%PARAMETERS%
-Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.jar
set PARAMETERS=%PARAMETERS% -Dcatalina.home=%CATALINA_HOME%
set PARAMETERS=%PARAMETERS%
-Djava.endorsed.dirs=%CATALINA_HOME%\common\endorsed
set PARAMETERS=%PARAMETERS% -Dsun.io.useCanonCaches=false
set PARAMETERS=%PARAMETERS% %CATALINA_OPTS%
set PARAMETERS=%PARAMETERS% -start org.apache.catalina.startup.Bootstrap -params start
set PARAMETERS=%PARAMETERS% -stop org.apache.catalina.startup.Bootstrap -params stop
set PARAMETERS=%PARAMETERS% -out %CATALINA_HOME%\logs\stdout.log
set PARAMETERS=%PARAMETERS% -err %CATALINA_HOME%\logs\stderr.log
%CATALINA_HOME%\bin\tomcat -install "Apache Tomcat 4.1" %PARAMETERS%
-----Message d'origine-----
De : Tino Sch�llhorn [mailto:[EMAIL PROTECTED]
Envoy� : mercredi 4 f�vrier 2004 17:51
� : [EMAIL PROTECTED]
Objet : VM settings in windows service
Hi,
I am using Tomcat 5.0.18 on Windows 2000 as a service and I want to
change the memory-setting of the VM the Tomcat-Service-Manager uses. I
already changed the "Java Options" in the Tomcat Configuration tool, but
when I look at the status page of tomcat it tells me that the MAX-Memory
is 64MB instead of my 256M which I want.
I used the -X option to achieve this: -Xmx256M
What can I do that the service accepts these settings?
Tino
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<FONT SIZE=1 FACE="Arial">_______________
Vi g�r opm�rksom p�, at denne e-mail kan indeholde fortrolig information. Hvis du ved
en fejltagelse modtager e-mailen, beder vi dig venligst informere afsender om fejlen
ved at bruge svar-funktionen. Samtidig beder vi dig slette e-mailen i dit system uden
at videresende eller kopiere den.
Selv om e-mailen og ethvert vedh�ftet bilag efter vores overbevisning er fri for virus
og andre fejl, som kan p�virke computeren eller it-systemet, hvori den modtages og
l�ses, �bnes den p� modtagerens eget ansvar. Vi p�tager os ikke noget ansvar for tab
og skade, som er opst�et i forbindelse med at modtage og bruge e-mailen.
_______________
Please note that this message may contain confidential information. If you have
received this message by mistake, please inform the sender of the mistake by sending a
reply, then delete the message from your system without making, distributing or
retaining any copies of it.
Although we believe that the message and any attachments are free from viruses and
other errors that might affect the computer or IT system where it is received and
read, the recipient opens the message at his or her own risk. We assume no
responsibility for any loss or damage arising from the receipt or use of this message.
</FONT>