title: Debugging a strange memory leak - Java/Tomcat
body: <p>I'm experiencing a very odd problem with a Java application running under Tomcat.</p>
  
  <p>We tried to update the production code from a fresh newly produced in a 1-week sprint, the application has been running over months without hiccups and then this new code makes our Linux servers start swapping after some time.</p>
  
  <p>The very strange thing is that when looking at VisualVM for memory usage it never exceeds the maximum heap size, the JVM does not throw an OutOfMemory, the machine only starts swapping and the JVM keeps running even after that.</p>
  
  <p>So, it seems that's leaking memory from somewhere, it seems like it's from the new code but it's odd that it's not inside the JVM, any ideas in how to debug that?</p>
  
  <p>Thanks!</p>