title: Memory Leak on DeleteOnExitHook
body: <p>I have a Java application running 24/7, it has a connection to a MySQL server and a TimerTask (is running Akka). I'm running into OutOfMemoryError after a week or less of operation and the heap dump reveals a LinkedHashMap with over 4 millions of Strings, they have a GC root of java.io.DeleteOnExitHook using 800 MB of heap.</p>
  
  <p>All the Strings are something like /tmp/jar_cachexxxx.tmp</p>
  
  <p>This problem is consistent in two machines running OpenJDK Runtime Environment (build 1.8.0_101-b13). The JDBC driver is the one provided on maven "mysql-connector-java" version 5.1.38 and I'm using the connection pool BoneCP, version 0.8.0.</p>
  
  <p>Anyone has an idea about this leak?</p>
  
  <p><strong>Update -- 5/12/16</strong></p>
  
  <p>The problem has been solved after we've changed the compiler for the project. We noticed that eclipse jar creator was the only thing that has any relation with jar cache, so after we compiled the project with maven, the memory leak was gone. </p>