8204598: add more thread-related system settings info to hs_error file on Linux

Reviewed-by: dholmes, stuefe
This commit is contained in:
Matthias Baesken 2018-06-08 14:14:44 +02:00
parent ff2c589b63
commit 053b43564c
2 changed files with 21 additions and 0 deletions

View file

@ -1988,6 +1988,8 @@ void os::print_os_info(outputStream* st) {
os::Linux::print_full_memory_info(st);
os::Linux::print_proc_sys_info(st);
os::Linux::print_container_info(st);
}
@ -2120,6 +2122,24 @@ void os::Linux::print_libversion_info(outputStream* st) {
st->cr();
}
void os::Linux::print_proc_sys_info(outputStream* st) {
st->cr();
st->print_cr("/proc/sys/kernel/threads-max (system-wide limit on the number of threads):");
_print_ascii_file("/proc/sys/kernel/threads-max", st);
st->cr();
st->cr();
st->print_cr("/proc/sys/vm/max_map_count (maximum number of memory map areas a process may have):");
_print_ascii_file("/proc/sys/vm/max_map_count", st);
st->cr();
st->cr();
st->print_cr("/proc/sys/kernel/pid_max (system-wide limit on number of process identifiers):");
_print_ascii_file("/proc/sys/kernel/pid_max", st);
st->cr();
st->cr();
}
void os::Linux::print_full_memory_info(outputStream* st) {
st->print("\n/proc/meminfo:\n");
_print_ascii_file("/proc/meminfo", st);