Hi, For me it was related to the user with which i was running the service. As soon as the ssh session would time out , the service would stop, even if it was started as a background process.
As soon as i shifted to root/similar user, the problem went away. Thanks Vaibhav Dhawan On Mon, Feb 6, 2017 at 3:21 PM, <[email protected]> wrote: > Hi Vaibhav, > > I am facing similar problem. I was running it as a background process but > still it shutdown after some time. Please help how you resolved it. Thanks > in advance. > > Regards, > Thej > > On Wednesday, September 21, 2016 at 11:48:01 AM UTC+5:30, Vaibhav Dhawan > wrote: >> >> Was able to get through this finally. Still not sure what caused it but >> started the DW process as a service on my Ubuntu and it hasnt >> crashed/stopped since. >> >> 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 a topic in the > Google Groups "dropwizard-user" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/dropwizard-user/4L-k1tgPOm0/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- Thanks Vaibhav Dhawan +919871488896 -- 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.
