-
Bug
-
Resolution: Fixed
-
P2
-
6u26, 6u30
-
b12
-
generic, x86
-
generic, linux
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2220623 | 8 | Dmitriy Samersoff | P2 | Closed | Fixed | b24 |
JDK-2220559 | 7u4 | Dmitriy Samersoff | P2 | Closed | Fixed | b10 |
JDK-2221602 | 6u32 | Poonam Bajaj Parhar | P2 | Closed | Fixed | b03 |
JDK-2220568 | 6u31-rev | Poonam Bajaj Parhar | P2 | Resolved | Fixed | b22 |
JDK-8008961 | 5.0u45 | Vladimir Kempik | P4 | Closed | Fixed | b04 |
JDK-2221603 | hs20.7 | Poonam Bajaj Parhar | P4 | Resolved | Fixed | b02 |
JDK-2221315 | hs20.6 | Poonam Bajaj Parhar | P4 | Resolved | Fixed | b02 |
A DESCRIPTION OF THE PROBLEM :
Using the getLastGcInfo on the sun jdk extension causes a native memory leak. Running the following program, one can easily see the RES memory of the java process increasing. This is really problematic since this method seems to be used by many libraries out there...
import java.lang.management.GarbageCollectorMXBean;
import java.lang.management.ManagementFactory;
import java.util.List;
public class TestMemoryLeak {
public static void main(String[] args) throws Exception {
while (true) {
List<GarbageCollectorMXBean> gcMxBeans = ManagementFactory.getGarbageCollectorMXBeans();
for (GarbageCollectorMXBean gcMxBean : gcMxBeans) {
((com.sun.management.GarbageCollectorMXBean) gcMxBean).getLastGcInfo();
}
}
}
}
REPRODUCIBILITY :
This bug can be reproduced always.
- backported by
-
JDK-2220568 GarbageCollectorMXBean#getLastGcInfo leaks native memory
- Resolved
-
JDK-2221315 GarbageCollectorMXBean#getLastGcInfo leaks native memory
- Resolved
-
JDK-2221603 GarbageCollectorMXBean#getLastGcInfo leaks native memory
- Resolved
-
JDK-2220559 GarbageCollectorMXBean#getLastGcInfo leaks native memory
- Closed
-
JDK-2220623 GarbageCollectorMXBean#getLastGcInfo leaks native memory
- Closed
-
JDK-2221602 GarbageCollectorMXBean#getLastGcInfo leaks native memory
- Closed
-
JDK-8008961 GarbageCollectorMXBean#getLastGcInfo leaks native memory
- Closed
- relates to
-
JDK-7125594 C-heap growth issue in ThreadService::find_deadlocks_at_safepoint
- Closed