Java process stay in running state and consume CPU
<p>I have a jar running in background on a Ubuntu server.</p>

<p>In a certain moment, the application start consumming too much CPU (400%) and 4 child process stay in R state: </p>

<p><a href="http://i.stack.imgur.com/tvSv2.jpg" rel="nofollow">HTOP state before/after problem</a></p>

<p>N.B: the problem is generating NOT because of an amount of using, it is caused just after a certain time (3-4 days). We have to kill java and re-run it.</p>

<p><strong>EDIT ADD GC Log:</strong></p>

<p>I did java -verbose:gc and here is what I got between restarting the app and when the application show the problem explained before.</p>

<p><strong>EDIT ADD OLD GEN Log:</strong></p>

<p>In the first graph, the x-axis is not in second, because the log didn't give the timestamp when the GC is done. Also in the ScreenShot in the bottom, the Visual GC runned in Visual VM in the period where the problem is occuring.</p>

<p><a href="http://i.stack.imgur.com/YULa3.jpg" rel="nofollow">Graph Line for the GC</a></p>

<p>Here is the log dump :</p>

<p><a href="http://www.filedropper.com/threaddump2" rel="nofollow">http://www.filedropper.com/threaddump2</a></p>