mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 01:54:47 +02:00
8204598: add more thread-related system settings info to hs_error file on Linux
Reviewed-by: dholmes, stuefe
This commit is contained in:
parent
ff2c589b63
commit
053b43564c
2 changed files with 21 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue