• Post Reply Bookmark Topic Watch Topic
  • New Topic

Performance for JVM  RSS feed

 
nitin pokhriyal
Ranch Hand
Posts: 263
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I see a problem . I have couple of static linkedHashMap each map holds a type of object and there is cron job in spring which clears them and reloads from db after a hour. I saw server was going out of memory and used Jconsole to monitor it i saw object which was in linkedHashMap grown to 4 times as server up for 4 hours and cron job run 4 times. so looks like it is still holding object. when i click on GC button in JConsole, the object size in linkedhashmp came to original size. I used jmap option also to check size before and after gc.

So my question is what could be reason that it is holding objects. If anybody doesn't get my question. i ll try to explain again.

Thanks in advance.
 
Robert Jester
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Perhaps the Spring cron job is not clearing the objects correctly for the map. Can you please take a look?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!