Hey Vaibhav. Can you provide the full log output during shutdown (perhaps as a gist) that includes anything you elided in the "..." section of your snippet, please?
On Sat, Sep 3, 2016 at 1:22 AM, Vaibhav Dhawan <[email protected]> wrote: > Just to add, i am using in hibernate as well which points to a mysql > server. Just thinking if there is a connection to database here as well. > > Thanks > Vaibhav > > On Saturday, 3 September 2016 13:50:30 UTC+5:30, Vaibhav Dhawan wrote: >> >> Hello, >> >> I am on Dropwizard 1.0.0 , Java 1.8 and have a few services running in >> there. Since the services are not in production yet, hence there are >> periods when no one is accessing those services. >> >> What i notice is that Jetty shuts down automatically and gracefully after >> some period of inactivity. The inactivity period is not consistent and it >> goes down at random times. Here is an excerpt from the logs >> >> DEBUG [12:34:34.693] [dw-21] o.e.j.u.t.QueuedThreadPool - ran EPC Prod/ >> org.eclipse.jetty.io.ManagedSelector$SelectorProducer@432959e3 >> DEBUG [12:57:24.162] [Thread-13] o.e.j.u.c.AbstractLifeCycle - stopping >> org.eclipse.jetty.server.Server@46e3559f >> DEBUG [12:57:24.162] [Thread-13] o.e.j.s.Server - doStop >> org.eclipse.jetty.server.Server@46e3559f >> DEBUG [12:57:24.164] [Thread-13] o.e.j.s.Server - Graceful shutdown >> org.eclipse.jetty.server.Server@46e3559f by >> DEBUG [12:57:24.164] [Thread-13] o.e.j.u.c.AbstractLifeCycle - stopping >> application@21c747a{HTTP/1.1,[http/1.1]}{0.0.0.0:8090} >> . >> . >> . >> .INFO [12:57:24.221] [Thread-13] o.e.j.s.h.ContextHandler - Stopped >> i.d.j.MutableServletContextHandler@5bfa8cc5{/,null,UNAVAILABLE} >> DEBUG [12:57:24.221] [Thread-13] o.e.j.u.c.AbstractLifeCycle - STOPPED >> i.d.j.MutableServletContextHandler@5bfa8cc5{/,null,UNAVAILABLE} >> >> >> This time it went down after 23 minutes of inactivity, there are times it >> goes doen after 6 minutes, 12 minutes etc. >> Any clues? Should i have a dummy service which simply pings every minute >> to keep it alive. I have used 0.9.2 for a 6 months and never faced this >> issue earlier. >> >> Any pointers are appreciated. >> >> Thanks >> Vaibhav >> > -- > You received this message because you are subscribed to the Google Groups > "dropwizard-user" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- Evan Meagher -- You received this message because you are subscribed to the Google Groups "dropwizard-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
