You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Alex Carvalho da Silva <al...@gmail.com> on 2011/04/27 18:36:33 UTC

Logrotate killing Tomcat

Hi everyone,

One tomcat server instance die when the logrotate run every week...

The  last info I get in the logs are :
Apr 7, 2011 4:03:15 AM org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8180
Apr 7, 2011 4:03:16 AM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Apr 7, 2011 4:03:16 AM org.apache.catalina.ha.session.JvmRouteBinderValve
stop
INFO: JvmRouteBinderValve stopped
Apr 7, 2011 4:03:17 AM org.apache.catalina.ha.session.DeltaManager stop
INFO: Manager [localhost#] expiring sessions upon shutdown
Apr 7, 2011 4:03:17 AM org.apache.catalina.loader.WebappClassLoader
clearReferencesJdbc

Running The Apache Tomcat 6.0 (6.0.32)
Linux CentOS :2.6.18-194.17.4.el5
java version "1.6.0_24"

There is not tomcat script on the /etc/logrotate.d/

How can I solve that problem?

Thanks,
Alex Carvalho

Re: Logrotate killing Tomcat

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thomas,

On 4/30/2011 12:57 AM, Thomas Freitag wrote:
> Hi Alex,
> 
> On 04/29/2011 07:19 PM, Alex Carvalho da Silva wrote:
>> I ran manually "/usr/sbin/logrotate /etc/logrotate.conf" and the aplication
>> shutdown. Can mod_jk shutdown the tomcat?
> 
> No it can not. You should look in /etc/logrotate.conf which files are
> referenced. Maybe scripts are sending signals to the java process.

+1

It's more likely that you are using a process that is more appropriate
for Apache httpd log rotation than Tomcat log rotation.

>> I suspicious that configuration in my workers.properties:
> 
>> worker.institucional-homologacao-west.socket_timeout=1800
>> worker.institucional-homologacao-west.recycle_timeout=1800
>> worker.institucional-homologacao-west.cache_timeout=1800
> 
> At least recycle_timeout and cache_timeout deprecated since several
> years, see
> http://tomcat.apache.org/connectors-doc/reference/workers.html for
> description of connection_pool_timeout.

+1

Always good to read the documentation :)

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk2+uQAACgkQ9CaO5/Lv0PAbJwCgv2UPa1f8/kCg2T6oMrW4Sfl0
KuIAoMHR4sFhOkWFocgYCRBzlcGMo0JL
=nBow
-----END PGP SIGNATURE-----

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


Re: Logrotate killing Tomcat

Posted by Alex Carvalho da Silva <al...@gmail.com>.
Hi Thomas,

There isn't in /etc/logrotate.conf a script sending signals to the java
process.
I installed on the last Friday a new server with a new version of Centos
"5.6". In that new server, the tomcat process didn't shutdown.  On the
Centos 5.5, the tomcat process has been shutdown by logrotate.

I Think the problem was solved, probably a bug in Centos 5.5. I'll do more
test and keep you informed.

Thanks,
Alex Carvalho

2011/4/30 Thomas Freitag <th...@freit.ag>

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi Alex,
>
> On 04/29/2011 07:19 PM, Alex Carvalho da Silva wrote:
> > I ran manually "/usr/sbin/logrotate /etc/logrotate.conf" and the
> aplication
> > shutdown. Can mod_jk shutdown the tomcat?
>
> No it can not. You should look in /etc/logrotate.conf which files are
> referenced. Maybe scripts are sending signals to the java process.
>
> > I suspicious that configuration in my workers.properties:
> >
> > worker.institucional-homologacao-west.socket_timeout=1800
> > worker.institucional-homologacao-west.recycle_timeout=1800
> > worker.institucional-homologacao-west.cache_timeout=1800
>
> At least recycle_timeout and cache_timeout deprecated since several
> years, see
> http://tomcat.apache.org/connectors-doc/reference/workers.html for
> description of connection_pool_timeout.
>
> Regards,
> - --
> Thomas Freitag
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
>
> iEYEARECAAYFAk27lqcACgkQGE5pHr3PKuXoagCffHcW35FukpUIZUSFp8mJVJkk
> TXwAnRYpBdtOZL8QoGc8lxzVWDiA2HIF
> =4y94
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: Logrotate killing Tomcat

Posted by Thomas Freitag <th...@freit.ag>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Alex,

On 04/29/2011 07:19 PM, Alex Carvalho da Silva wrote:
> I ran manually "/usr/sbin/logrotate /etc/logrotate.conf" and the aplication
> shutdown. Can mod_jk shutdown the tomcat?

No it can not. You should look in /etc/logrotate.conf which files are
referenced. Maybe scripts are sending signals to the java process.

> I suspicious that configuration in my workers.properties:
> 
> worker.institucional-homologacao-west.socket_timeout=1800
> worker.institucional-homologacao-west.recycle_timeout=1800
> worker.institucional-homologacao-west.cache_timeout=1800

At least recycle_timeout and cache_timeout deprecated since several
years, see
http://tomcat.apache.org/connectors-doc/reference/workers.html for
description of connection_pool_timeout.

Regards,
- -- 
Thomas Freitag
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAk27lqcACgkQGE5pHr3PKuXoagCffHcW35FukpUIZUSFp8mJVJkk
TXwAnRYpBdtOZL8QoGc8lxzVWDiA2HIF
=4y94
-----END PGP SIGNATURE-----

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


Re: Logrotate killing Tomcat

Posted by Alex Carvalho da Silva <al...@gmail.com>.
Hi Chris,

I ran manually "/usr/sbin/logrotate /etc/logrotate.conf" and the aplication
shutdown. Can mod_jk shutdown the tomcat?
I suspicious that configuration in my workers.properties:

worker.institucional-homologacao-west.socket_timeout=1800
worker.institucional-homologacao-west.recycle_timeout=1800
worker.institucional-homologacao-west.cache_timeout=1800

Thanks,
Alex Carvalho

2011/4/28 Christopher Schultz <ch...@christopherschultz.net>

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Alex,
>
> On 4/27/2011 3:31 PM, Alex Carvalho da Silva wrote:
> > It's a catalina.out log. There isn't anything before that.
> > There is 4 instance running and only with this I have problem. I
> > discovered that
> > this problem occurs when logrotate runs, but there isn't tomcat script on
> > the /etc/logrotate.d/
>
> Sounds like your Tomcat process is stopping and you're just guessing
> that it's logrotate. If logrotate isn't set up to do anything with
> Tomcat, why do you think logrotate is stopping Tomcat?
>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAk25fogACgkQ9CaO5/Lv0PAuqgCfWqZ7yVhcDya+FN2sqbwxDnQ6
> FE8An39Z3zmoTRvhzIvKEmg9Jddzy9WX
> =mY06
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: Logrotate killing Tomcat

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Alex,

On 4/27/2011 3:31 PM, Alex Carvalho da Silva wrote:
> It's a catalina.out log. There isn't anything before that.
> There is 4 instance running and only with this I have problem. I
> discovered that
> this problem occurs when logrotate runs, but there isn't tomcat script on
> the /etc/logrotate.d/

Sounds like your Tomcat process is stopping and you're just guessing
that it's logrotate. If logrotate isn't set up to do anything with
Tomcat, why do you think logrotate is stopping Tomcat?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk25fogACgkQ9CaO5/Lv0PAuqgCfWqZ7yVhcDya+FN2sqbwxDnQ6
FE8An39Z3zmoTRvhzIvKEmg9Jddzy9WX
=mY06
-----END PGP SIGNATURE-----

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


Re: Logrotate killing Tomcat

Posted by Alex Carvalho da Silva <al...@gmail.com>.
It's a catalina.out log. There isn't anything before that.
There is 4 instance running and only with this I have problem. I
discovered that
this problem occurs when logrotate runs, but there isn't tomcat script on
the /etc/logrotate.d/

Alex Carvalho

2011/4/27 Wesley Acheson <we...@gmail.com>

> As far as I can see theres's no exception in this log.  Is there anything
> of
> intrest a few lines before this? Like a stack trace. What does catalina.out
> say?
>
>
> On Wed, Apr 27, 2011 at 6:36 PM, Alex Carvalho da Silva
> <al...@gmail.com>wrote:
>
> > Hi everyone,
> >
> > One tomcat server instance die when the logrotate run every week...
> >
> > The  last info I get in the logs are :
> > Apr 7, 2011 4:03:15 AM org.apache.coyote.http11.Http11Protocol pause
> > INFO: Pausing Coyote HTTP/1.1 on http-8180
> > Apr 7, 2011 4:03:16 AM org.apache.catalina.core.StandardService stop
> > INFO: Stopping service Catalina
> > Apr 7, 2011 4:03:16 AM org.apache.catalina.ha.session.JvmRouteBinderValve
> > stop
> > INFO: JvmRouteBinderValve stopped
> > Apr 7, 2011 4:03:17 AM org.apache.catalina.ha.session.DeltaManager stop
> > INFO: Manager [localhost#] expiring sessions upon shutdown
> > Apr 7, 2011 4:03:17 AM org.apache.catalina.loader.WebappClassLoader
> > clearReferencesJdbc
> >
> > Running The Apache Tomcat 6.0 (6.0.32)
> > Linux CentOS :2.6.18-194.17.4.el5
> > java version "1.6.0_24"
> >
> > There is not tomcat script on the /etc/logrotate.d/
> >
> > How can I solve that problem?
> >
> > Thanks,
> > Alex Carvalho
> >
>

Re: Logrotate killing Tomcat

Posted by Wesley Acheson <we...@gmail.com>.
As far as I can see theres's no exception in this log.  Is there anything of
intrest a few lines before this? Like a stack trace. What does catalina.out
say?


On Wed, Apr 27, 2011 at 6:36 PM, Alex Carvalho da Silva
<al...@gmail.com>wrote:

> Hi everyone,
>
> One tomcat server instance die when the logrotate run every week...
>
> The  last info I get in the logs are :
> Apr 7, 2011 4:03:15 AM org.apache.coyote.http11.Http11Protocol pause
> INFO: Pausing Coyote HTTP/1.1 on http-8180
> Apr 7, 2011 4:03:16 AM org.apache.catalina.core.StandardService stop
> INFO: Stopping service Catalina
> Apr 7, 2011 4:03:16 AM org.apache.catalina.ha.session.JvmRouteBinderValve
> stop
> INFO: JvmRouteBinderValve stopped
> Apr 7, 2011 4:03:17 AM org.apache.catalina.ha.session.DeltaManager stop
> INFO: Manager [localhost#] expiring sessions upon shutdown
> Apr 7, 2011 4:03:17 AM org.apache.catalina.loader.WebappClassLoader
> clearReferencesJdbc
>
> Running The Apache Tomcat 6.0 (6.0.32)
> Linux CentOS :2.6.18-194.17.4.el5
> java version "1.6.0_24"
>
> There is not tomcat script on the /etc/logrotate.d/
>
> How can I solve that problem?
>
> Thanks,
> Alex Carvalho
>