From aa7367f1ecc5da15591963e56e1435aa7b830f79 Mon Sep 17 00:00:00 2001 From: Matthias Baesken Date: Wed, 12 Jul 2023 10:39:28 +0000 Subject: [PATCH] 8311921: Inform about MaxExpectedDataSegmentSize in case of pthread_create failures on AIX Reviewed-by: jbechberger, stuefe --- src/hotspot/os/aix/os_aix.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hotspot/os/aix/os_aix.cpp b/src/hotspot/os/aix/os_aix.cpp index 91a9bbcff71..fef735ca101 100644 --- a/src/hotspot/os/aix/os_aix.cpp +++ b/src/hotspot/os/aix/os_aix.cpp @@ -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);