Review request (S) JDK-8004241 NPG: Metaspace occupies more memory than specified by -XX:MaxMetaspaceSize option
ysr1729 at gmail.com
Wed Mar 20 12:49:46 PDT 2013
One somewhat weakly related question (pardon the abuse of this thread,
but I figured it might be easy to get a quick response since we are on
the topic of NPG :-) : In what release of HS (HSXX.X-BXX) did NPG get
On Wed, Mar 20, 2013 at 9:30 AM, John Cuthbertson
<john.cuthbertson at oracle.com> wrote:
> Hi Mikael,
> Your change looks good to me.
> On 3/7/2013 12:54 AM, Mikael Gerdin wrote:
>> When deciding when to reserve more metaspace memory we erroneously looked
>> only at the "capacity" of the metaspace insted of the reserved space (which
>> is what we ask this function when expanding).
>> Additionally, we didn't check MaxMetaspaceSize against the sum of
>> reserved(Class) + reserved(NonClass) which caused us to use more than
>> MaxMetaspaceSize even when it was set.
>> (not yet available at the time of writing this mail)
>> JPRT with -XX:MaxMetaspaceSize set for all tests to exercise the code
More information about the hotspot-gc-dev