-
Bug
-
Resolution: Fixed
-
P3
-
5.0u15, 7
-
b01
-
generic
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2177081 | 7 | Y. Ramakrishna | P3 | Closed | Fixed | b27 |
JDK-2174892 | 6u14 | Y. Ramakrishna | P3 | Resolved | Fixed | b01 |
The current CMS (static) triggering strategy is:
if ((old gen occupacy % > CMSInitiatingOccupancyFraction) ||
(perm gen is subject to concurrent collection &&
(perm gen occupancy % > CMSInitiatingOccupancyFraction)) then
... start a CMS collection
By conflating old gen threshold with perm gen threshold, one might unnecessarily
do CMS collections when there is lots of free space in the old gen but relatively
little space in the perm gen. For 32-bit JVM's where address space is limited,
one may not have the luxury of a large MaxPermSize just to work around this
limitation.
Accordingaly, we want to refine the above strategy to something along the
lines of:
bool collect_old = old gen occupancy % > CMSInitiatingOccupancyFraction;
bool collect_perm = (perm gen is subject to concurrent collection &&
(perm gen occupacny % > CMSInitiatingPermOccuapncyFracton));
if (collect_perm) {
... start a CMS collection, certainly including perm gen
} else if (collect_old) {
... start a CMS collection, possibly excluding perm gen
}
if ((old gen occupacy % > CMSInitiatingOccupancyFraction) ||
(perm gen is subject to concurrent collection &&
(perm gen occupancy % > CMSInitiatingOccupancyFraction)) then
... start a CMS collection
By conflating old gen threshold with perm gen threshold, one might unnecessarily
do CMS collections when there is lots of free space in the old gen but relatively
little space in the perm gen. For 32-bit JVM's where address space is limited,
one may not have the luxury of a large MaxPermSize just to work around this
limitation.
Accordingaly, we want to refine the above strategy to something along the
lines of:
bool collect_old = old gen occupancy % > CMSInitiatingOccupancyFraction;
bool collect_perm = (perm gen is subject to concurrent collection &&
(perm gen occupacny % > CMSInitiatingPermOccuapncyFracton));
if (collect_perm) {
... start a CMS collection, certainly including perm gen
} else if (collect_old) {
... start a CMS collection, possibly excluding perm gen
}
- backported by
-
JDK-2174892 CMS: Need CMSInitiatingPermOccupancyFraction for perm, divorcing from CMSInitiatingOccupancyFraction
-
- Resolved
-
-
JDK-2177081 CMS: Need CMSInitiatingPermOccupancyFraction for perm, divorcing from CMSInitiatingOccupancyFraction
-
- Closed
-
- relates to
-
JDK-6543076 CMS: Adaptive collection of perm gen
-
- Closed
-