8311921: Inform about MaxExpectedDataSegmentSize in case of pthread_create failures on AIX

Reviewed-by: jbechberger, stuefe
This commit is contained in:
Matthias Baesken 2023-07-12 10:39:28 +00:00
parent 753bd563ec
commit aa7367f1ec

View File

@ -828,7 +828,8 @@ bool os::create_thread(Thread* thread, ThreadType thr_type,
log_warning(os, thread)("Failed to start thread \"%s\" - pthread_create failed (%d=%s) for attributes: %s.",
thread->name(), ret, os::errno_name(ret), os::Posix::describe_pthread_attr(buf, sizeof(buf), &attr));
// Log some OS information which might explain why creating the thread failed.
log_info(os, thread)("Number of threads approx. running in the VM: %d", Threads::number_of_threads());
log_warning(os, thread)("Number of threads approx. running in the VM: %d", Threads::number_of_threads());
log_warning(os, thread)("Checking JVM parameter MaxExpectedDataSegmentSize (currently " SIZE_FORMAT "k) might be helpful", MaxExpectedDataSegmentSize/K);
LogStream st(Log(os, thread)::info());
os::Posix::print_rlimit_info(&st);
os::print_memory_info(&st);