tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeffrey Janner <Jeffrey.Jan...@PolyDyne.com>
Subject RE: Tomcat 6 and Windows Service
Date Thu, 06 Jun 2013 13:30:16 GMT
> -----Original Message-----
> From: Caldarale, Charles R [mailto:Chuck.Caldarale@unisys.com]
> Sent: Wednesday, June 05, 2013 8:04 AM
> To: Tomcat Users List
> Subject: RE: Tomcat 6 and Windows Service
> 
> > From: Walter.Heestermans@toyota-europe.com
> > [mailto:Walter.Heestermans@toyota-europe.com]
> > Subject: RE: Tomcat 6 and Windows Service
> 
> > I can set the following Java options
> 
> > -Dcom.sun.management.jmxremote.port=10150
> 
> > The stop  using shudown class is
> org.apache.catalina.startup.Bootstrap
> > with argument stop, stays hanging because the java process to stop
> the
> > service tries to connect port 10150;
> 
> Initiating a stop creates another process which uses all of the options
> specified, thus creating the port conflict you're seeing.  If you
> configure the ports using the JMX listener, only the server process
> will use them.
> 
> http://tomcat.apache.org/tomcat-6.0-
> doc/config/listeners.html#JMX_Remote_Lifecycle_Listener_-
> _org.apache.catalina.mbeans.JmxRemoteLifecycleListener
> 
> You can also stop Tomcat by sending the process an appropriate signal,
> or running the shutdown.bat script (even when Tomcat is running as a
> service).
> 

The shutdown.bat script won't work if you set the shutdown port to "-1".
This appears to be the recommended practice for running as a Windows service, as it really
isn't needed and limits the ability of a rogue user (non-admin) to shutdown the Tomcat service.
Under Windows, you should really just use either the Services control panel, net start/stop
at the command line, or the Monitor Tomcat application.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message