|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
/tmp/jar_cache strings in hashmaps filling up memory heap |
« View previous topic :: View next topic » |
Author |
Message
|
MABeatty1978 |
Posted: Thu Jun 02, 2016 9:20 am Post subject: /tmp/jar_cache strings in hashmaps filling up memory heap |
|
|
Acolyte
Joined: 17 Jul 2014 Posts: 54
|
I've recently discovered on a machine that doesn't have much memory on it that I've got a memory leak. In analyizing the heap dump, the culprate is a java.util.io.DeleteOnExitHook class that contains a LinkedHashMap$Entry class which ultimately contains the string /tmp/jar_cache#######.jar. After running over night, there are a couple million of them.
From what I'm reading... this appears to be a JVM bug located in File.deleteOnExit(), in which the JVM deletes the file, but the record is never purged from the hashmap. I'm wondering, however, if anyone has run into the and has discovered a solution. |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Jun 02, 2016 11:40 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Easiest way would probably be to write a derived class that overrides that method...? or access the source code, fix it and recompile... In any case you may want to open a ticket with the vendor of the JVM and let them know of the problem...  _________________ MQ & Broker admin |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|