  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Struts - A MVC web framework | | Tomcat - JSP/Servlet container | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | | JSP - A mailing list about Java Server Pages specification and reference | |
Struts & Hibernate
|
|
|
  | | | Vedr.: RE: Vedr.: RE: VM settings in windows service | Vedr.: RE: Vedr.: RE: VM settings in windows service 2004-02-05 - By Thomas Nybro Bolding
Back > 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" <R.STOCKHOLM@(protected)> 05-02-2004 09:14 Besvar venligst til "Tomcat Users List"
Til: "Tomcat Users List" <tomcat-user@(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:thomas.bolding@(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" <R.STOCKHOLM@(protected)> 04-02-2004 18:12 Besvar venligst til "Tomcat Users List"
Til: "Tomcat Users List" <tomcat-user@(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:t.schoellhorn@(protected)] Envoy� : mercredi 4 f�vrier 2004 17:51 � : tomcat-user@(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: tomcat-user-unsubscribe@(protected) For additional commands, e-mail: tomcat-user-help@(protected)
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected) For additional commands, e-mail: tomcat-user-help@(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>
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected) For additional commands, e-mail: tomcat-user-help@(protected)
|
|
 |