tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pid <>
Subject Re: graceful restart tomcat
Date Thu, 10 Nov 2011 09:12:48 GMT
On 10/11/2011 08:28, Kaushal Shriyan wrote:
> Hi,
> Is there a way to forcefully graceful restart tomcat server using bash
> script via cron.Any sample bash script ?

Which is it: forceful or graceful?  The two are not usually compatible.

'graceful' is found in Apache HTTPD: [the] signal causes the parent
process to advise the children to exit after their current request (or
to exit immediately if they're not serving anything). The parent
re-reads its configuration files and re-opens its log files. As each
child dies off the parent replaces it with a child from the new
generation of the configuration, which begins serving new requests

There is no equivalent for Tomcat.

The Commons Daemon found in tomcat/bin/commons-daemon-native.tar.gz
provides a service wrapper and /etc/init.d/ type sample script which may
be useful.

Why do you need to schedule Tomcat restarts?  It is often a mitigation
applied instead of resolving the cause of a memory leak.  Better to find
& fix the leak than leave it place.


> Regards,
> Kaushal
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:



View raw message