Is there any way to add "connection: close" response header via http/1.1 connection after graceful shutdown begin by outside library

2024-05-17 Thread SG H
. When I rolling update pods with new image in k8s, there are must be newly created pods and terminating pods. And in terminating pods, Spring Boot are in graceful shutdown phase, so new connection to these will got RST packet by tomcat embed I guess. In additional, after graceful shutdown phase

Re: Tomcat graceful shutdown inquiry

2016-06-28 Thread Coty Sutherland
Fantastic. Thanks! :) On Tue, Jun 28, 2016 at 2:43 PM, Mark Thomas wrote: > On 28/06/2016 19:39, Coty Sutherland wrote: >> Hello all, >> >> I've been poking around with the Fedora distribution of tomcat and >> noticed that systemd isn't allowing tomcat to gracefully shutdown

Re: Tomcat graceful shutdown inquiry

2016-06-28 Thread Mark Thomas
On 28/06/2016 19:39, Coty Sutherland wrote: > Hello all, > > I've been poking around with the Fedora distribution of tomcat and > noticed that systemd isn't allowing tomcat to gracefully shutdown (it > sends an immediate SIGKILL after the Boostrap stop is called). That > isn't your issue, but in

Tomcat graceful shutdown inquiry

2016-06-28 Thread Coty Sutherland
Hello all, I've been poking around with the Fedora distribution of tomcat and noticed that systemd isn't allowing tomcat to gracefully shutdown (it sends an immediate SIGKILL after the Boostrap stop is called). That isn't your issue, but in trying to mediate the issue so that session persistence

Re: Fwd: NoClassDefFoundError during graceful shutdown

2016-02-10 Thread Hrishikesh Gadre
Hi Chris, I did some more troubleshooting by enabling Tomcat debug logs. It turns out that the class loading is failing due to FileNotFoundException for antlr-runtime.jar file. I am not sure why is that the case since I can see that jar file at the location mentioned. Feb 10, 2016 10:00:24 AM

Re: Fwd: NoClassDefFoundError during graceful shutdown

2016-02-10 Thread Hrishikesh Gadre
Hi Chris, Thanks for the response. >>This looks like a different issue than you originally reported. Has that other issue gone away? Or is this the root cause of the originally-reported issue? I think it is the root cause for the original issue. As per my understanding, the

Re: Fwd: NoClassDefFoundError during graceful shutdown

2016-02-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hdishikesh, On 2/10/16 2:12 PM, Hrishikesh Gadre wrote: > Hi Chris, > > I did some more troubleshooting by enabling Tomcat debug logs. It > turns out that the class loading is failing due to > FileNotFoundException for antlr-runtime.jar file. I am

Re: Fwd: NoClassDefFoundError during graceful shutdown

2016-02-10 Thread Hrishikesh Gadre
Hi Chris, I added a check to see if this jar file exists (and is readable) both inside the ServletFilter init(...) and destroy(...) methods. Most of the times the check passes. But when I get NoClassDefFoundError, I see that check is passing during invocation of init(...) method but not during

Re: Fwd: NoClassDefFoundError during graceful shutdown

2016-02-10 Thread Hrishikesh Gadre
Oh BTW the jar file still exits on the filesystem (i.e. its not being touched during the execution of Tomcat). On Wed, Feb 10, 2016 at 6:31 PM, Hrishikesh Gadre wrote: > Hi Chris, > > I added a check to see if this jar file exists (and is readable) both > inside the

Re: Fwd: NoClassDefFoundError during graceful shutdown

2016-02-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hrishikesh, On 2/8/16 9:50 AM, Christopher Schultz wrote: > Hrishikesh, > > On 2/6/16 1:17 PM, Hrishikesh Gadre wrote: >> Thanks for the reply. Let me try this out. But do you think its a >> bug in Tomcat ? > > No. There's nothing Tomcat can do

Re: Fwd: NoClassDefFoundError during graceful shutdown

2016-02-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hrishikesh, On 2/8/16 9:50 AM, Christopher Schultz wrote: > Hrishikesh, > > On 2/6/16 1:17 PM, Hrishikesh Gadre wrote: >> Thanks for the reply. Let me try this out. But do you think its >> a bug in Tomcat ? > > No. There's nothing Tomcat can do

Re: Fwd: NoClassDefFoundError during graceful shutdown

2016-02-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hrishikesh, On 2/6/16 1:17 PM, Hrishikesh Gadre wrote: > Thanks for the reply. Let me try this out. But do you think its a > bug in Tomcat ? No. There's nothing Tomcat can do about this, aside from allowing your application to load /more/ classes on

Re: Fwd: NoClassDefFoundError during graceful shutdown

2016-02-06 Thread Hrishikesh Gadre
ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hrishikesh, > > On 2/5/16 6:57 PM, Hrishikesh Gadre wrote: > > We are getting NoClassDefFoundErrors during Tomcat graceful > > shutdown process (i.e. using "catalina.sh stop" command

Fwd: NoClassDefFoundError during graceful shutdown

2016-02-05 Thread Hrishikesh Gadre
Hi, We are getting NoClassDefFoundErrors during Tomcat graceful shutdown process (i.e. using "catalina.sh stop" command). We are using Tomcat with version 6.0.44. Note that this error can not be reproduced consistently. I found following article on the stackoverflow.com which sugg

Re: Fwd: NoClassDefFoundError during graceful shutdown

2016-02-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hrishikesh, On 2/5/16 6:57 PM, Hrishikesh Gadre wrote: > We are getting NoClassDefFoundErrors during Tomcat graceful > shutdown process (i.e. using "catalina.sh stop" command). We are > using Tomcat with version 6.0.44. Note

Graceful Shutdown

2014-07-30 Thread Ron Holckener
Hi, Does Tomcat server support Graceful Shutdown (like all other App Servers: Weblogic, Websphere), where new requests are rejected, and the server finishes in-flight work on existing requests? Something like the apachectl -k graceful, but instead to restart to stop the server. Tomcat 8.0.9

Re: Graceful Shutdown

2014-07-30 Thread Mark Thomas
On 30/07/2014 12:24, Ron Holckener wrote: Hi, Does Tomcat server support Graceful Shutdown (like all other App Servers: Weblogic, Websphere), where new requests are rejected, and the server finishes in-flight work on existing requests? Something like the apachectl -k graceful, but instead

RE: Graceful Shutdown

2014-07-30 Thread Ron Holckener
This behavior exists using the regular shutdown.sh script? Is the timeout (10s) configurable? Thanks, Ron Holckener -Original Message- From: Mark Thomas [mailto:ma...@apache.org] Sent: Wednesday, July 30, 2014 3:50 PM To: Tomcat Users List Subject: Re: Graceful Shutdown On 30/07/2014

Re: Graceful Shutdown

2014-07-30 Thread Mark Thomas
PM To: Tomcat Users List Subject: Re: Graceful Shutdown On 30/07/2014 12:24, Ron Holckener wrote: Hi, Does Tomcat server support Graceful Shutdown (like all other App Servers: Weblogic, Websphere), where new requests are rejected, and the server finishes in-flight work on existing

Re: Graceful Shutdown

2014-07-30 Thread Arseny
30.07.2014 16:19, Ron Holckener пишет: This behavior exists using the regular shutdown.sh script? Is the timeout (10s) configurable? Thanks, Ron Holckener ./$CATALINA_HOME/bin/catalina.sh stop 30 (30 sec. wait) Don't remember same option inside shutdown.sh, but anyway - it call

Re: Graceful Shutdown

2014-07-30 Thread Christopher Schultz
30 (30 sec. wait) Don't remember same option inside shutdown.sh, but anyway - it call catalina.sh with stop option. catalina.sh stop 30 will only wait 30 seconds to check to see if the process stopped: it will not force a shutdown. Under default setup, Tomcat will only perform a graceful

Re: Graceful Shutdown

2014-07-30 Thread Igal @ getRailo.org
to check to see if the process stopped: it will not force a shutdown. Under default setup, Tomcat will only perform a graceful shutdown. That is, no explicit process termination will occur. A SHUTDOWN command is sent to the server which will pause the connectors (so they will not accept new connections

Re: Graceful Shutdown

2014-07-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Igal, On 7/30/14, 11:22 PM, Igal @ getRailo.org wrote: will -force work even if the JVM has a running non-daemon thread? In my experience, kill -9 is fairly effective. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: GPGTools -

Re: Graceful Shutdown

2014-07-30 Thread Arseny
31.07.2014 6:19, Christopher Schultz пишет: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Arseny, On 7/30/14, 4:13 PM, Arseny wrote: 30.07.2014 16:19, Ron Holckener пишет: This behavior exists using the regular shutdown.sh script? Is the timeout (10s) configurable? Thanks, Ron Holckener

Re: Graceful Shutdown

2014-07-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Arseny, On 7/31/14, 12:29 AM, Arseny wrote: 31.07.2014 6:19, Christopher Schultz пишет: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Arseny, On 7/30/14, 4:13 PM, Arseny wrote: 30.07.2014 16:19, Ron Holckener пишет: This behavior exists

Tomcat 7.0.27 graceful shutdown fails

2013-07-12 Thread Prakash P
W hen I stop the tomcat by calling the shutdown.sh script or sending SIGTERM signal to the java process it's throwing the following exception and the shutdown get hung. INFO: Destroying ProtocolHandler [http-bio-80] Jul 11, 2013 10:01:58 AM org.apache.catalina.util.LifecycleMBeanBase unregister

RE: Tomcat 7.0.27 graceful shutdown fails

2013-07-12 Thread Caldarale, Charles R
From: Prakash P [mailto:prakash@gmail.com] Subject: Tomcat 7.0.27 graceful shutdown fails When I stop the tomcat by calling the shutdown.sh script or sending SIGTERM signal to the java process it's throwing the following exception and the shutdown get hung. And a thread dump shows

Re: Tomcat 7.0.27 graceful shutdown fails

2013-07-12 Thread André Warnier
Prakash P wrote: W hen I stop the tomcat by calling the shutdown.sh script or sending SIGTERM signal to the java process it's throwing the following exception and the shutdown get hung. INFO: Destroying ProtocolHandler [http-bio-80] Jul 11, 2013 10:01:58 AM

Re: Tomcat 7.0.27 graceful shutdown fails

2013-07-12 Thread André Warnier
Caldarale, Charles R wrote: From: Prakash P [mailto:prakash@gmail.com] Subject: Tomcat 7.0.27 graceful shutdown fails Ooops. When I stop the tomcat by calling the shutdown.sh script or sending SIGTERM signal to the java process it's throwing the following exception and the shutdown get

Re: Tomcat 6 graceful shutdown

2011-03-21 Thread Mark Thomas
On 21/03/2011 02:15, Igor Cicimov wrote: Hi, I'm running Tomcat 6.0.26 on Solaris 10 and have a question about what exactly happens during Tomcat graceful shutdown? I guess first thing it does is stop accepting new sessions on the listening ports. Sessions aren't received on ports, requests

Re: Tomcat 6 graceful shutdown

2011-03-21 Thread Igor Cicimov
of course) Igor On Mon, Mar 21, 2011 at 8:07 PM, Mark Thomas ma...@apache.org wrote: On 21/03/2011 02:15, Igor Cicimov wrote: Hi, I'm running Tomcat 6.0.26 on Solaris 10 and have a question about what exactly happens during Tomcat graceful shutdown? I guess first thing it does is stop

RE: Tomcat 6 graceful shutdown

2011-03-21 Thread Caldarale, Charles R
From: Igor Cicimov [mailto:icici...@gmail.com] Subject: Re: Tomcat 6 graceful shutdown What can I do to trouble shoot this and find exactly where the problem is? (except taking stack trace on the hanged process of course) Taking a thread dump is pretty much the only way. Other than

Tomcat 6 graceful shutdown

2011-03-20 Thread Igor Cicimov
Hi, I'm running Tomcat 6.0.26 on Solaris 10 and have a question about what exactly happens during Tomcat graceful shutdown? I guess first thing it does is stop accepting new sessions on the listening ports. Sessions only or it stops accepting new requests from the already established sessions

Re: shutdown.sh and graceful shutdown

2009-10-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Marcoi, On 10/5/2009 8:07 AM, Marcoi wrote: I have a servlet with the following code: for (int i = 0; i 50; i++) { System.out.println(waiting + i); Thread.currentThread().sleep(500); } PrintWriter writer

Re: shutdown.sh and graceful shutdown

2009-10-06 Thread Marcoi
-- View this message in context: http://www.nabble.com/shutdown.sh-and-graceful-shutdown-tp25749596p25771598.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr

shutdown.sh and graceful shutdown

2009-10-05 Thread Marcoi
see it only waited for 3 seconds before taking down the server instead to let the request end is there a way to configure how long to wait? Thanks Marco -- View this message in context: http://www.nabble.com/shutdown.sh-and-graceful-shutdown-tp25749596p25749596.html Sent from the Tomcat

Re: Graceful shutdown

2008-07-14 Thread Ben Stringer
On Mon, 2008-07-07 at 00:10 -0700, Antonio Parolini wrote: Hi, Ben 1) Define a status worker [1] and one (or more) workers. Interresting. Will this status worker thing work -without- a webserver as Frontend (like Apache) ? Hi Antonio, No, to the best of my knowledge, you need to be

Re: Graceful shutdown

2008-07-07 Thread Antonio Parolini
/ before shuting down the server. -antonio -- View this message in context: http://www.nabble.com/Graceful-shutdown-tp18274673p18311209.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic

RE: Graceful shutdown

2008-07-05 Thread Martin Gainty
@tomcat.apache.org Subject: Graceful shutdown Hello, We use Tomcat 5.5.23 Using the command catalina.sh stop interrupts abruptly any working servlet threads and stop Tomcat. Is there a way of shutting tomcat gracefully? For me, an example of graceful shutdown would be: 1) The HTTP connector stop

Graceful shutdown

2008-07-04 Thread Antonio Parolini
Hello, We use Tomcat 5.5.23 Using the command catalina.sh stop interrupts abruptly any working servlet threads and stop Tomcat. Is there a way of shutting tomcat gracefully? For me, an example of graceful shutdown would be: 1) The HTTP connector stop accepting new requests 2) Tomcat wait

Re: Graceful shutdown

2008-07-04 Thread Ben Stringer
On Fri, 2008-07-04 at 00:54 -0700, Antonio Parolini wrote: Hello, We use Tomcat 5.5.23 Using the command catalina.sh stop interrupts abruptly any working servlet threads and stop Tomcat. Is there a way of shutting tomcat gracefully? For me, an example of graceful shutdown would

RE: Graceful shutdown

2008-07-04 Thread Walter Thompson
Try using shutdown.sh and startup.sh to start and stop Tomcat. Walter -Original Message- From: Antonio Parolini [mailto:[EMAIL PROTECTED] Sent: Friday, July 04, 2008 2:54 AM To: users@tomcat.apache.org Subject: Graceful shutdown Hello, We use Tomcat 5.5.23 Using the command