Vedr.: RE: Vedr.: RE: VM settings in windows service
> Environment variables are not used by the service. Not sure about 4.1.x but for 5.1.x the service sure seems to recognise my options set in the Tomcat Service Manager. For my 4.0.6 machines I set them directly in the Windows registry. /Thomas "STOCKHOLM, Raymond" <[EMAIL PROTECTED]> 05-02-2004 09:14 Besvar venligst til "Tomcat Users List" Til:"Tomcat Users List" <[EMAIL PROTECTED]> cc: Vedr.: RE: Vedr.: RE: VM settings in windows service >You do NOT have to reinstall Tomcat. Fine by me, but how can you change the CATALINA_OPTS used by your service, if you do not reinstall the windows service ? Environment variables are not used by the service. -Message d'origine- De : Thomas Nybro Bolding [mailto:[EMAIL PROTECTED] Envoyé : jeudi 5 février 2004 09:07 À : Tomcat Users List Objet : Vedr.: RE: VM settings in windows service 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] ___ 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. --
RE: Vedr.: RE: VM settings in windows service
>You do NOT have to reinstall Tomcat. Fine by me, but how can you change the CATALINA_OPTS used by your service, if you do not reinstall the windows service ? Environment variables are not used by the service. -Message d'origine- De : Thomas Nybro Bolding [mailto:[EMAIL PROTECTED] Envoyé : jeudi 5 février 2004 09:07 À : Tomcat Users List Objet : Vedr.: RE: VM settings in windows service 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] ___ 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. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]