Integrated: JDK-8323964: runtime/Thread/ThreadCountLimit.java fails intermittently on AIX

Matthias Baesken mbaesken at openjdk.org
Tue Jan 23 08:19:59 UTC 2024


On Mon, 22 Jan 2024 08:20:51 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:

> Every 1-2 months we run into into such kind of failures on AIX:
> 
> 
> [2.498s][warning][os,thread] Failed to start thread "Unknown thread" - pthread_create failed (11=EAGAIN) for attributes: stacksize: 2112k, guardsize: 0k, detached.
> [2.498s][warning][os,thread] Number of threads approx. running in the VM: 4223
> [2.498s][warning][os,thread] Checking JVM parameter MaxExpectedDataSegmentSize (currently 8388608k) might be helpful
> [2.498s][warning][os,thread] Failed to start the native thread for java.lang.Thread "Thread-4213"
> 
> [error occurred during error reporting (), id 0xe0000000, Internal Error (/workspace/openjdk-jdk-dev-aix_ppc64-dbg/jdk/src/hotspot/os/aix/os_aix.cpp:2971)]
> #
> # There is insufficient memory for the Java Runtime Environment to continue.
> # Native memory allocation (malloc) failed to allocate 56 bytes. Error detail: AllocateHeap
> [thread 3856 also had an error]
> # An error report file with more information is saved as:
> # /tmp/hs_err_pid13959464.log
> [thread 76331 also had an error]
> 
> 
> Seems the MaxExpectedDataSegmentSize (Maximum expected size of the data segment, AIX specific flag)
> settings in in some cases too low for the test.
> We experienced this a few times in scenarios where a lot of threads are created (and even warn about this, see os_aix.cpp).
> So we should better run with a higher than default value of MaxExpectedDataSegmentSize for this test.

This pull request has now been integrated.

Changeset: 3696765b
Author:    Matthias Baesken <mbaesken at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/3696765b7d1faec4bd23761a7a1b627d8903598d
Stats:     18 lines in 2 files changed: 10 ins; 0 del; 8 mod

8323964: runtime/Thread/ThreadCountLimit.java fails intermittently on AIX

Reviewed-by: dholmes, stuefe

-------------

PR: https://git.openjdk.org/jdk/pull/17512


More information about the hotspot-runtime-dev mailing list