Help coderanch get a
new server
by contributing to the fundraiser
  • 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 ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

Discrepency between JMX and heapdump

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?

See where your hand is? Not there. It's next to this tiny ad:
We need your help - Coderanch server fundraiser
    Bookmark Topic Watch Topic
  • New Topic