Why dose max heap size change?

=?GB2312?B?stzQ8bar?= caoxudong818 at gmail.com
Sun Aug 12 01:10:58 PDT 2012


Hi all,

I am doing some monitor jobs for JVM with JMX, and has been stuck on a
question about max heap size.

The javadoc of the field *max* of class *java.lang.management.HeapUsage*says,

      "represents the maximum amount of memory (in bytes) that can be used
for memory management. Its value may be undefined.

       *The maximum amount of memory may change over time if defined*. "

So, my question is,

       Why dose max heap size change, if I defined it with Xmx?

Any response will be appreciated.

Best Regards.

caoxudong
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/hotspot-gc-use/attachments/20120812/7a12079f/attachment.html 


More information about the hotspot-gc-use mailing list