• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Discrepency between JMX and heapdump

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So I've sat and watched my application in JMX, specifically the Memory tab. I was quite surprised to see the heap creep up to about 300MB. It does shrink down but in another 5 minutes or so, it's right back up there. I was curious to see what was actually inside, so I initiated a dumpHeap to disk (also from JMX). The annoying thing is that file created is only about 11MB small! I've tried it a few times, just to make sure I wasn't catching it at the wrong moment, but it hasn't seem to make a difference.

Can anybody explain this quite significant difference?

cheers!
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic