RFR [XS] : 8204598 : add more thread-related system settings info to hs_error file on Linux
matthias.baesken at sap.com
Fri Jun 8 08:04:05 UTC 2018
Hi could you please review this small Linux related change ?
In linux os::print_os_info , I print additional info about a number of system parameters influencing thread creation on Linux.
We noticed the influence of these parameters when looking into an application creating over 10.000 threads on Linux at the same time; there we got an OOM : unable to create new native thread
which was caused by a failing pthread_create (error EAGAIN) .
The machine had plenty of memory, so we looked into various kernel params and in the end noticed that /proc/sys/kernel/pid_max was too low.
The other added parameters "threads-max" and "max_map_count" are also known to be related to problems when running with high thread numbers, so I add them too .
More information about the hotspot-dev