Re: Run Tomcat in W2k3 as service
Not sure about your tomcat version but under 4.1 the settings may be added in the registry under: [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Apache Tomcat 4.1\Parameters] add the following keys: JVM Option Number 4=-Xms512m JVM Option Number 5=-Xms512m and modify the jvm options count key: JVM Option Count=dword:0006 -- View this message in context: http://www.nabble.com/Run-Tomcat-in-W2k3-as-service-t1326738.html#a3848218 Sent from the Tomcat - User forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Run Tomcat in W2k3 as service
On Fri, 2006-03-24 at 09:42 -0500, Ryan Daly wrote: On Fri, 2006-03-24 at 08:27 -0600, Benjamin Armintor wrote: I'm not sure about Windows services specifically, but you can start the JVM with a security manager generically by using the -Djava.security.manager and -Djava.security.policy=YOUR POLICY FILE URL java startup options. You can append these to $JAVA_OPTS on Unix systems to get a security manager (it's effectively what the catalina startup script does), so I'd try using those as the --JvmOptions values. This does appear to function properly. Thanks for the help. -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Run Tomcat in W2k3 as service
On Thu, 2006-03-23 at 20:51 +, Nic Daniau wrote: You may need to reconfigure the service. Have a look to my post from a few min ago on *running two instances of tomcat* you can also update the service using e.g. %CATALINA_HOME%\bin\tomcat5.exe //US//Tomcat5 --Description My updated description Referencing your other post, you're saying I can do something like the following? %CATALINA_HOME%\bin\tomcat5.exe //US/Tomcat5 --JvmOptions -security Will that work to get the security manager working while running as a service? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Run Tomcat in W2k3 as service
On Fri, 2006-03-24 at 13:38 +, Nic Daniau wrote: I wouldn't think so, these options are called when the service is launched so you would have to restart the service for this to be picked up. Right, I understand that I'll have to restart the service. But is that the way to get the service to recognize the fact that I want the security manager running? %CATALINA_HOME%\bin\tomcat5.exe //US/Tomcat5 --JvmOptions -security - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Run Tomcat in W2k3 as service
On Fri, 2006-03-24 at 13:55 +, Nic Daniau wrote: Not sure, TFM is a bit vague on this, it does not talk of the windows service. This must be one of the options, but which one?... StartMode? JvmOptions? I've never really spent a lot of time on the security manager, but I'm definitively interested in an answer on this. I have an opportunity to take the site down in a few minutes. I'll quickly try setting that and post what I find. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Run Tomcat in W2k3 as service
On Fri, 2006-03-24 at 08:58 -0500, Ryan Daly wrote: I have an opportunity to take the site down in a few minutes. I'll quickly try setting that and post what I find. No good. If anyone comes across the proper options to do this, please post it to the list. Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Run Tomcat in W2k3 as service
I'm not sure about Windows services specifically, but you can start the JVM with a security manager generically by using the -Djava.security.manager and -Djava.security.policy=YOUR POLICY FILE URL java startup options. You can append these to $JAVA_OPTS on Unix systems to get a security manager (it's effectively what the catalina startup script does), so I'd try using those as the --JvmOptions values. Benjamin J. Armintor Operating Systems Specialist ITS-Systems: Mainframe Group University of Texas - Austin tele: (512) 232-6562 email: [EMAIL PROTECTED] -Original Message- From: Ryan Daly [mailto:[EMAIL PROTECTED] Sent: Friday, March 24, 2006 8:14 AM To: Nic Daniau Cc: Tomcat Users List Subject: Re: Run Tomcat in W2k3 as service On Fri, 2006-03-24 at 08:58 -0500, Ryan Daly wrote: I have an opportunity to take the site down in a few minutes. I'll quickly try setting that and post what I find. No good. If anyone comes across the proper options to do this, please post it to the list. Thanks. - 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]
RE: Run Tomcat in W2k3 as service
On Fri, 2006-03-24 at 08:27 -0600, Benjamin Armintor wrote: I'm not sure about Windows services specifically, but you can start the JVM with a security manager generically by using the -Djava.security.manager and -Djava.security.policy=YOUR POLICY FILE URL java startup options. You can append these to $JAVA_OPTS on Unix systems to get a security manager (it's effectively what the catalina startup script does), so I'd try using those as the --JvmOptions values. I was actually just taking a look at that. I'll give that a try and see how it goes... Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Run Tomcat in W2k3 as service
Yes indeed and its quite easy! If you're running it as a service (either installed the exe or ran the service install ... from the zip version) you will have a [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Procrun 2.0\Tomcat5\Parameters] in your registry (where Tomcat5 is the name given to your Tomcat service - ie. you may have multiple if you having a horizontal cluster or just different versions). In this you will have a Java key specifying several Java parameters such as classpath, jvm, xms, xm and general options. You should be able to edit this reg file and use it: Change Tomcat and Jvm path beforehand - change Jvm and other options afterwards... - - - Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Procrun 2.0\Tomcat5\Parameters] [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Procrun 2.0\Tomcat5\Parameters\Java] Jvm=C:\\App\\Java\\jdk1.5.0_06\\jre\\bin\\server\\jvm.dll Classpath=C:\\App\\Tomcat5\\bin\\bootstrap.jar Options=hex(7):2d,00,44,00,63,00,61,00,74,00,61,00,6c,00,69,00,6e,00,6 1,00,\ 2e,00,68,00,6f,00,6d,00,65,00,3d,00,43,00,3a,00,5c,00,41,00,70,00,70,00, 5c,\ 00,54,00,6f,00,6d,00,63,00,61,00,74,00,35,00,00,00,2d,00,44,00,63,00,61, 00,\ 74,00,61,00,6c,00,69,00,6e,00,61,00,2e,00,62,00,61,00,73,00,65,00,3d,00, 43,\ 00,3a,00,5c,00,41,00,70,00,70,00,5c,00,54,00,6f,00,6d,00,63,00,61,00,74, 00,\ 35,00,00,00,2d,00,44,00,6a,00,61,00,76,00,61,00,2e,00,65,00,6e,00,64,00, 6f,\ 00,72,00,73,00,65,00,64,00,2e,00,64,00,69,00,72,00,73,00,3d,00,43,00,3a, 00,\ 5c,00,41,00,70,00,70,00,5c,00,54,00,6f,00,6d,00,63,00,61,00,74,00,35,00, 5c,\ 00,63,00,6f,00,6d,00,6d,00,6f,00,6e,00,5c,00,65,00,6e,00,64,00,6f,00,72, 00,\ 73,00,65,00,64,00,00,00,2d,00,44,00,6a,00,61,00,76,00,61,00,2e,00,69,00, 6f,\ 00,2e,00,74,00,6d,00,70,00,64,00,69,00,72,00,3d,00,43,00,3a,00,5c,00,41, 00,\ 70,00,70,00,5c,00,54,00,6f,00,6d,00,63,00,61,00,74,00,35,00,5c,00,74,00, 65,\ 00,6d,00,70,00,00,00,2d,00,44,00,6a,00,61,00,76,00,61,00,2e,00,75,00,74, 00,\ 69,00,6c,00,2e,00,6c,00,6f,00,67,00,67,00,69,00,6e,00,67,00,2e,00,6d,00, 61,\ 00,6e,00,61,00,67,00,65,00,72,00,3d,00,6f,00,72,00,67,00,2e,00,61,00,70, 00,\ 61,00,63,00,68,00,65,00,2e,00,6a,00,75,00,6c,00,69,00,2e,00,43,00,6c,00, 61,\ 00,73,00,73,00,4c,00,6f,00,61,00,64,00,65,00,72,00,4c,00,6f,00,67,00,4d, 00,\ 61,00,6e,00,61,00,67,00,65,00,72,00,00,00,2d,00,44,00,6a,00,61,00,76,00, 61,\ 00,2e,00,75,00,74,00,69,00,6c,00,2e,00,6c,00,6f,00,67,00,67,00,69,00,6e, 00,\ 67,00,2e,00,63,00,6f,00,6e,00,66,00,69,00,67,00,2e,00,66,00,69,00,6c,00, 65,\ 00,3d,00,43,00,3a,00,5c,00,41,00,70,00,70,00,5c,00,54,00,6f,00,6d,00,63, 00,\ 61,00,74,00,35,00,5c,00,63,00,6f,00,6e,00,66,00,5c,00,6c,00,6f,00,67,00, 67,\ 00,69,00,6e,00,67,00,2e,00,70,00,72,00,6f,00,70,00,65,00,72,00,74,00,69, 00,\ 65,00,73,00,00,00,2d,00,44,00,6a,00,61,00,76,00,61,00,2e,00,73,00,65,00, 63,\ 00,75,00,72,00,69,00,74,00,79,00,2e,00,6d,00,61,00,6e,00,61,00,67,00,65, 00,\ 72,00,00,00,2d,00,44,00,6a,00,61,00,76,00,61,00,2e,00,73,00,65,00,63,00, 75,\ 00,72,00,69,00,74,00,79,00,2e,00,70,00,6f,00,6c,00,69,00,63,00,79,00,3d, 00,\ 43,00,3a,00,5c,00,41,00,70,00,70,00,5c,00,54,00,6f,00,6d,00,63,00,61,00, 74,\ 00,35,00,5c,00,63,00,6f,00,6e,00,66,00,5c,00,63,00,61,00,74,00,61,00,6c, 00,\ 69,00,6e,00,61,00,2e,00,70,00,6f,00,6c,00,69,00,63,00,79,00,00,00,2d,00, 44,\ 00,6a,00,61,00,76,00,61,00,2e,00,61,00,77,00,74,00,2e,00,68,00,65,00,61, 00,\ 64,00,6c,00,65,00,73,00,73,00,3d,00,74,00,72,00,75,00,65,00,00,00,00,00 JvmMs=dword:0100 JvmMx=dword:0200 JvmSs=dword:0080 [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Procrun 2.0\Tomcat5\Parameters\Log] Path=C:\\App\\Tomcat5\\logs StdError=auto StdOutput=auto Level=Error [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Procrun 2.0\Tomcat5\Parameters\Start] WorkingPath=C:\\App\\Tomcat5 Class=org.apache.catalina.startup.Bootstrap Params=hex(7):73,00,74,00,61,00,72,00,74,00,00,00,00,00 Mode=jvm [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Procrun 2.0\Tomcat5\Parameters\Stop] WorkingPath=C:\\App\\Tomcat5 Class=org.apache.catalina.startup.Bootstrap Params=hex(7):73,00,74,00,6f,00,70,00,00,00,00,00 Mode=jvm - - - Best regards Thomas -Original Message- From: Ryan Daly [mailto:[EMAIL PROTECTED] Sent: 22. marts 2006 22:26 To: Tomcat Users List Subject: Run Tomcat in W2k3 as service Has anyone successfully set environment variables for the Tomcat process when it's running as a service? Is it possible to start the service with the -security option, as in Linux? Thanks in advance. - 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]
RE: Run Tomcat in W2k3 as service
Oups in case you're running a script to start Tomcat you may use for instance (taken from my TC4 script): set JAVA_HOME=C:\App\Java\jdk1.4.2_05 set CATALINA_HOME=C:\App\Tomcat4 set CATALINA_OPTS=-server -Xms512m -Xmx1024m -XX:NewSize=64m -XX:MaxNewSize=64m -XX:MaxPermSize=128m -Xss128k -XX:+UseConcMarkSweepGC -XX:+UseCMSCompactAtFullCollection -XX:CMSFullGCsBeforeCompaction=0 -XX:+DisableExplicitGC -Djava.awt.headless=true call %CATALINA_HOME%\bin\catalina.bat run -security -Original Message- From: Thomas Bolding [mailto:[EMAIL PROTECTED] Sent: 24. marts 2006 15:49 To: Tomcat Users List Subject: RE: Run Tomcat in W2k3 as service Yes indeed and its quite easy! If you're running it as a service (either installed the exe or ran the service install ... from the zip version) you will have a [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Procrun 2.0\Tomcat5\Parameters] in your registry (where Tomcat5 is the name given to your Tomcat service - ie. you may have multiple if you having a horizontal cluster or just different versions). In this you will have a Java key specifying several Java parameters such as classpath, jvm, xms, xm and general options. You should be able to edit this reg file and use it: Change Tomcat and Jvm path beforehand - change Jvm and other options afterwards... - - - Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Procrun 2.0\Tomcat5\Parameters] [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Procrun 2.0\Tomcat5\Parameters\Java] Jvm=C:\\App\\Java\\jdk1.5.0_06\\jre\\bin\\server\\jvm.dll Classpath=C:\\App\\Tomcat5\\bin\\bootstrap.jar Options=hex(7):2d,00,44,00,63,00,61,00,74,00,61,00,6c,00,69,00,6e,00,6 1,00,\ 2e,00,68,00,6f,00,6d,00,65,00,3d,00,43,00,3a,00,5c,00,41,00,70,00,70,00, 5c,\ 00,54,00,6f,00,6d,00,63,00,61,00,74,00,35,00,00,00,2d,00,44,00,63,00,61, 00,\ 74,00,61,00,6c,00,69,00,6e,00,61,00,2e,00,62,00,61,00,73,00,65,00,3d,00, 43,\ 00,3a,00,5c,00,41,00,70,00,70,00,5c,00,54,00,6f,00,6d,00,63,00,61,00,74, 00,\ 35,00,00,00,2d,00,44,00,6a,00,61,00,76,00,61,00,2e,00,65,00,6e,00,64,00, 6f,\ 00,72,00,73,00,65,00,64,00,2e,00,64,00,69,00,72,00,73,00,3d,00,43,00,3a, 00,\ 5c,00,41,00,70,00,70,00,5c,00,54,00,6f,00,6d,00,63,00,61,00,74,00,35,00, 5c,\ 00,63,00,6f,00,6d,00,6d,00,6f,00,6e,00,5c,00,65,00,6e,00,64,00,6f,00,72, 00,\ 73,00,65,00,64,00,00,00,2d,00,44,00,6a,00,61,00,76,00,61,00,2e,00,69,00, 6f,\ 00,2e,00,74,00,6d,00,70,00,64,00,69,00,72,00,3d,00,43,00,3a,00,5c,00,41, 00,\ 70,00,70,00,5c,00,54,00,6f,00,6d,00,63,00,61,00,74,00,35,00,5c,00,74,00, 65,\ 00,6d,00,70,00,00,00,2d,00,44,00,6a,00,61,00,76,00,61,00,2e,00,75,00,74, 00,\ 69,00,6c,00,2e,00,6c,00,6f,00,67,00,67,00,69,00,6e,00,67,00,2e,00,6d,00, 61,\ 00,6e,00,61,00,67,00,65,00,72,00,3d,00,6f,00,72,00,67,00,2e,00,61,00,70, 00,\ 61,00,63,00,68,00,65,00,2e,00,6a,00,75,00,6c,00,69,00,2e,00,43,00,6c,00, 61,\ 00,73,00,73,00,4c,00,6f,00,61,00,64,00,65,00,72,00,4c,00,6f,00,67,00,4d, 00,\ 61,00,6e,00,61,00,67,00,65,00,72,00,00,00,2d,00,44,00,6a,00,61,00,76,00, 61,\ 00,2e,00,75,00,74,00,69,00,6c,00,2e,00,6c,00,6f,00,67,00,67,00,69,00,6e, 00,\ 67,00,2e,00,63,00,6f,00,6e,00,66,00,69,00,67,00,2e,00,66,00,69,00,6c,00, 65,\ 00,3d,00,43,00,3a,00,5c,00,41,00,70,00,70,00,5c,00,54,00,6f,00,6d,00,63, 00,\ 61,00,74,00,35,00,5c,00,63,00,6f,00,6e,00,66,00,5c,00,6c,00,6f,00,67,00, 67,\ 00,69,00,6e,00,67,00,2e,00,70,00,72,00,6f,00,70,00,65,00,72,00,74,00,69, 00,\ 65,00,73,00,00,00,2d,00,44,00,6a,00,61,00,76,00,61,00,2e,00,73,00,65,00, 63,\ 00,75,00,72,00,69,00,74,00,79,00,2e,00,6d,00,61,00,6e,00,61,00,67,00,65, 00,\ 72,00,00,00,2d,00,44,00,6a,00,61,00,76,00,61,00,2e,00,73,00,65,00,63,00, 75,\ 00,72,00,69,00,74,00,79,00,2e,00,70,00,6f,00,6c,00,69,00,63,00,79,00,3d, 00,\ 43,00,3a,00,5c,00,41,00,70,00,70,00,5c,00,54,00,6f,00,6d,00,63,00,61,00, 74,\ 00,35,00,5c,00,63,00,6f,00,6e,00,66,00,5c,00,63,00,61,00,74,00,61,00,6c, 00,\ 69,00,6e,00,61,00,2e,00,70,00,6f,00,6c,00,69,00,63,00,79,00,00,00,2d,00, 44,\ 00,6a,00,61,00,76,00,61,00,2e,00,61,00,77,00,74,00,2e,00,68,00,65,00,61, 00,\ 64,00,6c,00,65,00,73,00,73,00,3d,00,74,00,72,00,75,00,65,00,00,00,00,00 JvmMs=dword:0100 JvmMx=dword:0200 JvmSs=dword:0080 [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Procrun 2.0\Tomcat5\Parameters\Log] Path=C:\\App\\Tomcat5\\logs StdError=auto StdOutput=auto Level=Error [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Procrun 2.0\Tomcat5\Parameters\Start] WorkingPath=C:\\App\\Tomcat5 Class=org.apache.catalina.startup.Bootstrap Params=hex(7):73,00,74,00,61,00,72,00,74,00,00,00,00,00 Mode=jvm [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Procrun 2.0\Tomcat5\Parameters\Stop] WorkingPath=C:\\App\\Tomcat5 Class=org.apache.catalina.startup.Bootstrap Params=hex(7):73,00,74,00,6f,00,70,00,00,00,00,00 Mode=jvm - - - Best regards Thomas -Original Message- From: Ryan Daly [mailto:[EMAIL PROTECTED
RE: Run Tomcat in W2k3 as service
On Wed, 2006-03-22 at 19:34 -0500, Tim Lucia wrote: You can specify parameters on the various tabs under the servicew app (the tray monitor). You probably want Startup in this case, so it would go alongside the start option. I did try that. However, each time I put something there, it doesn't stick. When I reopen tomcat5w.exe, the options are no longer there. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Run Tomcat in W2k3 as service
You can specify parameters on the various tabs under the servicew app (the tray monitor). You probably want Startup in this case, so it would go alongside the start option. Tim -Original Message- From: Ryan Daly [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 22, 2006 4:26 PM To: Tomcat Users List Subject: Run Tomcat in W2k3 as service Has anyone successfully set environment variables for the Tomcat process when it's running as a service? Is it possible to start the service with the -security option, as in Linux? Thanks in advance. - 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]