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

compiler/compilercontrol/jcmd/StressAddMultiThreadedTest.java ang compiler/compilercontrol/mixed/RandomCommandsTest.java gets OOME

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Duplicate
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot

      Description

      The test runs out of memory trying to create many threads.

      java.lang.OutOfMemoryError: unable to create native thread: possibly out of memory or process/resource limits reached
      at java.lang.Thread.start0(Native Method)
      at java.lang.Thread.start(Thread.java:716)
      at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:966)
      at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1373)
      at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)
      at compiler.compilercontrol.jcmd.StressAddMultiThreadedTest.lambda$makeConnection$1(StressAddMultiThreadedTest.java:75)
      at java.util.ArrayList.forEach(ArrayList.java:1262)
      at compiler.compilercontrol.jcmd.StressAddMultiThreadedTest.makeConnection(StressAddMultiThreadedTest.java:73)
      at compiler.compilercontrol.jcmd.StressAddJcmdBase$TimeLimitedExecutor.lambda$executeJCMD$0(StressAddJcmdBase.java:102)
      at jdk.test.lib.TimeLimitedRunner.call(TimeLimitedRunner.java:71)
      at compiler.compilercontrol.jcmd.StressAddJcmdBase$TimeLimitedExecutor.executeJCMD(StressAddJcmdBase.java:104)
      at compiler.compilercontrol.share.scenario.Executor.connectTestVM(Executor.java:134)
      at compiler.compilercontrol.share.scenario.Executor.lambda$execute$0(Executor.java:98)
      at java.lang.Thread.run(Thread.java:747)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              neliasso Nils Eliasson
              Reporter:
              jprovino Joseph Provino (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: