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

"java.lang.OutOfMemoryError: unable to create new native thread" caused by upgrade to zlib 1.2.8

    Details

    • Type: Bug
    • Status: In Progress
    • Priority: P2
    • Resolution: Unresolved
    • Affects Version/s: 7u80
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:

      Description

      One of our customers started to see start-up failures of their application server caused by out of memory errors on native (non-Java) level. In the server logs they see many messages like this one:

      java.lang.OutOfMemoryError: unable to create new native thread
              at java.lang.Thread.start0(Native Method)
              at java.lang.Thread.start(Thread.java:714)
              at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:949)
      ...

      The error started to appear after they upgraded from Java 7u79 32 bit to Java 7u80 32 bit. The platform is Windows Server 2012 R2.
      During the investigation it was discovered that the error is caused by zlib 1.2.3 => 1.2.8 library update. Replacing zip.dll in 7u80 with its version from 7u79 fixes the problem. So technically this issue is a regression of the following change:
      https://bugs.openjdk.java.net/browse/JDK-8044725

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                nikgor Nikolay Gorshkov
                Reporter:
                nikgor Nikolay Gorshkov
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated: