Skip to content

Commit ab69b0d

Browse files
RadekCapPaul Hohensee
authored andcommitted
8343599: Kmem limit and max values swapped when printing container information
Backport-of: 6cdebf0e4ce274fcaaff0bad292d467e31d698d8
1 parent c0ab8a9 commit ab69b0d

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
@@ -241,9 +241,9 @@ void CgroupV1Subsystem::print_version_specific_info(outputStream* st) {
241241
jlong kmem_limit = kernel_memory_limit_in_bytes();
242242
jlong kmem_max_usage = kernel_memory_max_usage_in_bytes();
243243

244+
OSContainer::print_container_helper(st, kmem_limit, "kernel_memory_limit_in_bytes");
244245
OSContainer::print_container_helper(st, kmem_usage, "kernel_memory_usage_in_bytes");
245-
OSContainer::print_container_helper(st, kmem_limit, "kernel_memory_max_usage_in_bytes");
246-
OSContainer::print_container_helper(st, kmem_max_usage, "kernel_memory_limit_in_bytes");
246+
OSContainer::print_container_helper(st, kmem_max_usage, "kernel_memory_max_usage_in_bytes");
247247
}
248248

249249
char * CgroupV1Subsystem::cpu_cpuset_cpus() {

0 commit comments

Comments
 (0)