-
Enhancement
-
Resolution: Fixed
-
P3
-
22
-
b05
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8357871 | 21.0.9-oracle | Ivan Bereziuk | P3 | Resolved | Fixed | master |
JDK-8359880 | 21.0.9 | Goetz Lindenmaier | P3 | Resolved | Fixed | master |
JDK-8357986 | 17.0.17-oracle | Ivan Bereziuk | P3 | Resolved | Fixed | master |
JDK-8360215 | 17.0.17 | Goetz Lindenmaier | P3 | Resolved | Fixed | master |
JDK-8358570 | 11.0.29-oracle | Ivan Bereziuk | P3 | Resolved | Fixed | master |
JDK-8358571 | 8u471 | Ivan Bereziuk | P3 | Resolved | Fixed | master |
Often times, users monitor the RSS of processes running in a container, and get confused when a process gets terminated by the OOM killer even when its RSS is much lower than the max memory limit of the container.
Currently, we print the total memory usage (from /sys/fs/cgroup/memory/memory.usage_in_bytes) in hs_err and VM.info output.
Example:
container (cgroup) information:
container_type: cgroupv1
cpu_cpuset_cpus: 0-1
cpu_memory_nodes: 0
active_processor_count: 2
cpu_quota: no quota
cpu_period: 100000
cpu_shares: no shares
memory_limit_in_bytes: 524288 k
memory_and_swap_limit_in_bytes: 1048576 k
memory_soft_limit_in_bytes: unlimited
memory_usage_in_bytes: 524164 k. <<------
memory_max_usage_in_bytes: 524288 k.
kernel_memory_usage_in_bytes: 3124 k
kernel_memory_max_usage_in_bytes: unlimited
kernel_memory_limit_in_bytes: 4272 k
maximum number of tasks: unlimited
current number of tasks: 35
It would be very helpful to print the 'rss' and 'cache' usage as well, which can be obtained from /sys/fs/cgroup/memory/memory.stat file.
- backported by
-
JDK-8357871 Print 'rss' and 'cache' as part of the container information
-
- Resolved
-
-
JDK-8357986 Print 'rss' and 'cache' as part of the container information
-
- Resolved
-
-
JDK-8358570 Print 'rss' and 'cache' as part of the container information
-
- Resolved
-
-
JDK-8358571 Print 'rss' and 'cache' as part of the container information
-
- Resolved
-
-
JDK-8359880 Print 'rss' and 'cache' as part of the container information
-
- Resolved
-
-
JDK-8360215 Print 'rss' and 'cache' as part of the container information
-
- Resolved
-
- relates to
-
JDK-8249666 Improve Native Memory Tracking to report the actual RSS usage
-
- In Progress
-
- links to
-
Commit openjdk/jdk/c96cbe48
-
Commit(master) openjdk/jdk17u-dev/aeb2d2d0
-
Commit(master) openjdk/jdk21u-dev/346d749c
-
Review openjdk/jdk/17161
-
Review(master) openjdk/jdk17u-dev/3639
-
Review(master) openjdk/jdk21u-dev/1875