ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » /tmp/jar_cache strings in hashmaps filling up memory heap

Post new topic  Reply to topic
 /tmp/jar_cache strings in hashmaps filling up memory heap « View previous topic :: View next topic » 
Author Message
MABeatty1978
PostPosted: Thu Jun 02, 2016 9:20 am    Post subject: /tmp/jar_cache strings in hashmaps filling up memory heap Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Thu Jun 02, 2016 11:40 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » /tmp/jar_cache strings in hashmaps filling up memory heap
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.