title: Something keeps killing my Java process on Ubuntu, anyone know why?
body: <p>So every couple of days my java process on Ubuntu is killed automatically, and I can't figure out why.</p>
  
  <p>My box has 35.84 GB of RAM, when I launch my Java process I pass it the -Xmx28g parameter, so it should be using way less than the maximum RAM available.</p>
  
  <p>I ran jstat as follows:</p>
  
  <pre><code># jstat -gccause -t `pgrep java` 60000
  </code></pre>
  
  <p>The last few lines of output from jstat immediately before the process was killed were:</p>
  
  <pre><code>Time     S0     S1     E      O      P       YGC   YGCT       FGC FGCT     GCT     LGCC                 GCC
  14236.1  99.98   0.00  69.80  99.40  49.88   1011  232.305    11  171.041  403.347 unknown GCCause      No GC
  14296.2  93.02   0.00  65.79  99.43  49.88   1015  233.000    11  171.041  404.041 unknown GCCause      No GC
  14356.1  79.20   0.00  80.50  99.55  49.88   1019  233.945    11  171.041  404.986 unknown GCCause      No GC
  14416.2   0.00  99.98  24.32  99.64  49.88   1024  234.945    11  171.041  405.987 unknown GCCause      No GC
  </code></pre>
  
  <p>This seems to be what went down in the /var/log/syslog around this time: <a href="https://gist.github.com/1369135" rel="noreferrer">https://gist.github.com/1369135</a></p>
  
  <p>There is really nothing running on this server other than my java app.  What's going on?</p>
  
  <p><em>edit:</em> I'm running java version 1.6.0_20, the only notable parameters I'm passing to java on startup are "-server -Xmx28g".  I'm not using an application server but my app embeds the "Simple web framework".</p>