camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <willem.ji...@gmail.com>
Subject Re: Graceful shutdown not graceful at all
Date Tue, 15 May 2012 01:10:10 GMT
Can you show us the camel route, and how you start it.
 From the log I can tell you are using camel-jms component, but I need 
to more information to find out why there are hung threads.
Maybe you can use Jconsole to find out the thread id, to see if it is 
related to Camel.


On Tue May 15 05:41:01 2012, PhilBurress wrote:
> We're running into an issue where messages appear to be stuck "in-flight" and
> never leave that state.
>
> If we shut down the server (we use a customized shutdown policy of 30
> seconds), we see this...
>
> DefaultShutdo I org.apache.camel.impl.DefaultShutdownStrategy$ShutdownTask
> run Route: messageInRoute suspended and shutdown deferred, was consuming
> from: Endpoint[jms://queue:mqin]
> DefaultShutdo I org.apache.camel.impl.DefaultShutdownStrategy$ShutdownTask
> run Waiting as there are still 2 inflight and pending exchanges to complete,
> timeout in 30 seconds.
> ... (addl messages removed here)
> DefaultShutdo I org.apache.camel.impl.DefaultShutdownStrategy$ShutdownTask
> run Waiting as there are still 2 inflight and pending exchanges to complete,
> timeout in 1 seconds.
> DefaultShutdo W org.apache.camel.impl.DefaultShutdownStrategy doShutdown
> Timeout occurred. Now forcing the routes to be shutdown now.
> DefaultShutdo W org.apache.camel.impl.DefaultShutdownStrategy$ShutdownTask
> run Interrupted while waiting during graceful shutdown, will force shutdown
> now.
> DefaultShutdo I org.apache.camel.impl.DefaultShutdownStrategy$ShutdownTask
> run Route: messageInRoute shutdown complete.
>
> ... which appears that it has shutdown... but in fact, it has not. There are
> hung threads and we have to manually kill the app server. Any suggestions
> here? Also, why are messages stuck in-flight?
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Graceful-shutdown-not-graceful-at-all-tp5709579.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



--
Willem
----------------------------------
CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
         http://jnn.javaeye.com (Chinese)
Twitter: willemjiang
Weibo: willemjiang


Mime
View raw message