IBM User Guide for Java V7 on Windows > IBM SDK for Java > The collector and the allocator > How to do heap sizing
Using verbose:gc
You can use -verbose:gc when running your application with no load, and again under stress, to help you set the initial and maximum heap sizes.
The -verbose:gc output is fully described in Garbage Collector diagnostic data. Turn on -verbose:gc and run up the application with no load. Check the heap size at this stage. This provides a rough guide to the start size of the heap (-Xms option) that is needed. If this value is much larger than the defaults (see Default settings for the JVM), think about reducing this value a little to get efficient and rapid compaction up to this value, as described in Initial and maximum heap sizes.
By running an application under stress, you can determine a maximum heap size. Use this to set your max heap (-Xmx) value.
Parent: How to do heap sizing
Error 404 - Not Found Error 404 - Not Found
The document you are looking for may have been removed or re-named. Please contact the web site owner for further assistance.