tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Walter.Heesterm...@toyota-europe.com
Subject RE: Tomcat 6 and Windows Service
Date Fri, 07 Jun 2013 08:14:38 GMT
Implemented the listener and I can now start and stop the tomcat servers

Thanks!
Walter




From:   Jeffrey Janner <Jeffrey.Janner@PolyDyne.com>
To:     'Tomcat Users List' <users@tomcat.apache.org>, 
Date:   06/06/2013 15:31
Subject:        RE: Tomcat 6 and Windows Service



> -----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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message