Skip to content

Commit 8db58a0

Browse files
RadekCapjerboaa
authored andcommitted
8343599: Kmem limit and max values swapped when printing container information
Backport-of: 6cdebf0e4ce274fcaaff0bad292d467e31d698d8
1 parent a2983ce commit 8db58a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hotspot/os/linux/cgroupV1Subsystem_linux.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,9 @@ void CgroupV1Subsystem::print_version_specific_info(outputStream* st) {
225225
jlong kmem_limit = kernel_memory_limit_in_bytes();
226226
jlong kmem_max_usage = kernel_memory_max_usage_in_bytes();
227227

228+
OSContainer::print_container_helper(st, kmem_limit, "kernel_memory_limit_in_bytes");
228229
OSContainer::print_container_helper(st, kmem_usage, "kernel_memory_usage_in_bytes");
229-
OSContainer::print_container_helper(st, kmem_limit, "kernel_memory_max_usage_in_bytes");
230-
OSContainer::print_container_helper(st, kmem_max_usage, "kernel_memory_limit_in_bytes");
230+
OSContainer::print_container_helper(st, kmem_max_usage, "kernel_memory_max_usage_in_bytes");
231231
}
232232

233233
char * CgroupV1Subsystem::cpu_cpuset_cpus() {

0 commit comments

Comments
 (0)