Jetty process killed

January 16, 2013 5.7k views
Hi I'm running Jetty on 8080 and I've noticed in the past two days that the process apparently have died twice. I'm wondering if there is any "auto-kill" process running on the instances?
6 Answers
Apparently it was running out of memory. A quick fix java -Xmx64m
Sounds right.

Also be mindful that even with constant utilization if a process doesn't have absolutely perfect garbage collection its RAM utilization will creep up over time, which is often why there will be a master daemon that launches children so that they could be routinely cleaned out.
I'm seeing similar problems - processes suddenly get killed with no apparent reason. This includes postgresql and rake spec (ruby on rails testing process)...
Talking to DO support, it seems like the dropplets don't have any swap partition set up by default. Setting up some swap space on our droplet appeared to solve this problem for us.
Reliving this thread,

I have the same situation. Sometimes the jetty process is simply stopped, and your log doesn't have any memory leak.

My droplet configuration is: 1GB RAM, 30GB disk...with Ubuntu 12.04 x64

My Jetty is 7.6, and this is your settings at /etc/default/jetty:

JAVA_OPTIONS=" -server -Xms128m -Xmx512m -XX:+DisableExplicitGC -Dorg.eclipse.jetty.server.Request.maxFormKeys=900000 -Dorg.eclipse.jetty.server.Request.maxFormContentSize=500000"

Any idea about this situation ? :/

Thanks in advance.
I believe that I've found the problem...just my droplet has 1GB of RAM, and jetty service was configured with 768mb form Xmx arg, the java process might have finished because cannot allocate all required memory.

The service is running +- 10 hours without interruption.
Have another answer? Share your knowledge.