Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8365835

Test runtime/Thread/SuspendAtExit.java failed: unable to create native thread

XMLWordPrintable

      ----------System.out:(10/439)----------

      Agent_OnLoad started
      Agent_OnLoad finished

      Loaded library: SuspendAtExit
      About to execute for 15 seconds.
      Executed 26237 loops in 15 seconds.
      About to execute for 15 seconds.
      [17.456s][warning][os,thread] Failed to start thread "Unknown thread" - pthread_create failed (EAGAIN) for attributes: stacksize: 1024k, guardsize: 4k, detached.
      [17.456s][warning][os,thread] Failed to start the native thread for java.lang.Thread "Thread-28816"
      ----------System.err:(19/1665)----------
      ...
      java.lang.OutOfMemoryError: unable to create native thread: possibly out of memory or process/resource limits reached
      at java.base/java.lang.Thread.start0(Native Method)
      at java.base/java.lang.Thread.start(Thread.java:1417)
      at SuspendAtExit.test(SuspendAtExit.java:116)
      at SuspendAtExit.main(SuspendAtExit.java:103)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:565)
      at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
      at java.base/java.lang.Thread.run(Thread.java:1474)

            Unassigned Unassigned
            dholmes David Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: