java.lang.OutOfMemoryError: unable to create new native thread

Jenkins JIRA | Grigoriy Milman | 3 years ago
  1. 0

    PTC plugin causing memory leak. It's a very strange pattern: First we see "API Exception caught" like the following {quote} INFO: [xUnit] - [MSTest-Version N/A (default)] - 1 test report file(s) were found with the pattern 'TestResults\*.trx' relative to 'D:\Jenkins_ROOT\NGMP.DIRECT.Sandbox\SWProduction\TestLibraries\TestlibrariesCommon\CommonSwitchingPaths' for the testing framework 'MSTest-Version N/A (default)'. Jun 04, 2014 4:54:30 AM [INFO] IntegritySCM - Database shutdown successful! Jun 04, 2014 4:54:31 AM [INFO] IntegritySCM - API Exception caught... Jun 04, 2014 4:54:31 AM [INFO] IntegritySCM - Failed to establish a session: Session not authenticated/authorized. Jun 04, 2014 4:54:31 AM [INFO] IntegritySCM - API Exception caught... Jun 04, 2014 4:54:31 AM [INFO] IntegritySCM - Failed to establish a session: Session not authenticated/authorized. Jun 04, 2014 4:54:31 AM [INFO] IntegritySCM - API Exception caught... Jun 04, 2014 4:54:31 AM [INFO] IntegritySCM - Failed to establish a session: Session not authenticated/authorized. Jun 04, 2014 4:54:33 AM [INFO] IntegritySCM - java.util.concurrent.ExecutionException: java.lang.Exception: Failed to create APISession! Jun 04, 2014 4:54:33 AM [INFO] IntegritySCM - at java.util.concurrent.FutureTask$Sync.innerGet(null:-1) Jun 04, 2014 4:54:33 AM [INFO] IntegritySCM - at java.util.concurrent.FutureTask.get(null:-1) Jun 04, 2014 4:54:33 AM [INFO] IntegritySCM - at hudson.scm.IntegrityCheckoutTask.invoke(IntegrityCheckoutTask.java:359) Jun 04, 2014 4:54:33 AM [INFO] IntegritySCM - at hudson.scm.IntegrityCheckoutTask.invoke(IntegrityCheckoutTask.java:25) Jun 04, 2014 4:54:33 AM [INFO] IntegritySCM - at hudson.FilePath.act(FilePath.java:920) Jun 04, 2014 4:54:33 AM [INFO] IntegritySCM - at hudson.FilePath.act(FilePath.java:893) Jun 04, 2014 4:54:33 AM [INFO] IntegritySCM - at hudson.scm.IntegritySCM.checkout(IntegritySCM.java:789) Jun 04, 2014 4:54:33 AM [INFO] IntegritySCM - at hudson.model.AbstractProject.checkout(AbstractProject.java:1251) Jun 04, 2014 4:54:33 AM [INFO] IntegritySCM - at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:604) Jun 04, 2014 4:54:33 AM [INFO] IntegritySCM - at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) Jun 04, 2014 4:54:33 AM [INFO] IntegritySCM - at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:513) Jun 04, 2014 4:54:33 AM [INFO] IntegritySCM - at hudson.model.Run.execute(Run.java:1706) Jun 04, 2014 4:54:33 AM [INFO] IntegritySCM - at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) Jun 04, 2014 4:54:33 AM [INFO] IntegritySCM - at hudson.model.ResourceController.execute(ResourceController.java:88) Jun 04, 2014 4:54:33 AM [INFO] IntegritySCM - at hudson.model.Executor.run(Executor.java:231) {quote} than {quote} Exception in thread "Executor #1 for master : executing NGMP.Direct-Library.Fixture4140Flat #1352" java.lang.OutOfMemoryError: unable to create new native thread at java.lang.Thread.start0(Native Method) at java.lang.Thread.start(Unknown Source) at hudson.remoting.AtmostOneThreadExecutor.execute(AtmostOneThreadExecutor.java:88) at java.util.concurrent.AbstractExecutorService.submit(Unknown Source) at jenkins.util.AtmostOneTaskExecutor.maybeRun(AtmostOneTaskExecutor.java:84) at jenkins.util.AtmostOneTaskExecutor.submit(AtmostOneTaskExecutor.java:72) at hudson.model.Queue.scheduleMaintenance(Queue.java:928) at hudson.model.Executor.run(Executor.java:265) {quote} {quote}

    Jenkins JIRA | 3 years ago | Grigoriy Milman
    java.lang.OutOfMemoryError: unable to create new native thread
  2. 0

    PTC plugin causing memory leak. It's a very strange pattern: First we see "API Exception caught" like the following {quote} INFO: [xUnit] - [MSTest-Version N/A (default)] - 1 test report file(s) were found with the pattern 'TestResults\*.trx' relative to 'D:\Jenkins_ROOT\NGMP.DIRECT.Sandbox\SWProduction\TestLibraries\TestlibrariesCommon\CommonSwitchingPaths' for the testing framework 'MSTest-Version N/A (default)'. Jun 04, 2014 4:54:30 AM [INFO] IntegritySCM - Database shutdown successful! Jun 04, 2014 4:54:31 AM [INFO] IntegritySCM - API Exception caught... Jun 04, 2014 4:54:31 AM [INFO] IntegritySCM - Failed to establish a session: Session not authenticated/authorized. Jun 04, 2014 4:54:31 AM [INFO] IntegritySCM - API Exception caught... Jun 04, 2014 4:54:31 AM [INFO] IntegritySCM - Failed to establish a session: Session not authenticated/authorized. Jun 04, 2014 4:54:31 AM [INFO] IntegritySCM - API Exception caught... Jun 04, 2014 4:54:31 AM [INFO] IntegritySCM - Failed to establish a session: Session not authenticated/authorized. Jun 04, 2014 4:54:33 AM [INFO] IntegritySCM - java.util.concurrent.ExecutionException: java.lang.Exception: Failed to create APISession! Jun 04, 2014 4:54:33 AM [INFO] IntegritySCM - at java.util.concurrent.FutureTask$Sync.innerGet(null:-1) Jun 04, 2014 4:54:33 AM [INFO] IntegritySCM - at java.util.concurrent.FutureTask.get(null:-1) Jun 04, 2014 4:54:33 AM [INFO] IntegritySCM - at hudson.scm.IntegrityCheckoutTask.invoke(IntegrityCheckoutTask.java:359) Jun 04, 2014 4:54:33 AM [INFO] IntegritySCM - at hudson.scm.IntegrityCheckoutTask.invoke(IntegrityCheckoutTask.java:25) Jun 04, 2014 4:54:33 AM [INFO] IntegritySCM - at hudson.FilePath.act(FilePath.java:920) Jun 04, 2014 4:54:33 AM [INFO] IntegritySCM - at hudson.FilePath.act(FilePath.java:893) Jun 04, 2014 4:54:33 AM [INFO] IntegritySCM - at hudson.scm.IntegritySCM.checkout(IntegritySCM.java:789) Jun 04, 2014 4:54:33 AM [INFO] IntegritySCM - at hudson.model.AbstractProject.checkout(AbstractProject.java:1251) Jun 04, 2014 4:54:33 AM [INFO] IntegritySCM - at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:604) Jun 04, 2014 4:54:33 AM [INFO] IntegritySCM - at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) Jun 04, 2014 4:54:33 AM [INFO] IntegritySCM - at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:513) Jun 04, 2014 4:54:33 AM [INFO] IntegritySCM - at hudson.model.Run.execute(Run.java:1706) Jun 04, 2014 4:54:33 AM [INFO] IntegritySCM - at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) Jun 04, 2014 4:54:33 AM [INFO] IntegritySCM - at hudson.model.ResourceController.execute(ResourceController.java:88) Jun 04, 2014 4:54:33 AM [INFO] IntegritySCM - at hudson.model.Executor.run(Executor.java:231) {quote} than {quote} Exception in thread "Executor #1 for master : executing NGMP.Direct-Library.Fixture4140Flat #1352" java.lang.OutOfMemoryError: unable to create new native thread at java.lang.Thread.start0(Native Method) at java.lang.Thread.start(Unknown Source) at hudson.remoting.AtmostOneThreadExecutor.execute(AtmostOneThreadExecutor.java:88) at java.util.concurrent.AbstractExecutorService.submit(Unknown Source) at jenkins.util.AtmostOneTaskExecutor.maybeRun(AtmostOneTaskExecutor.java:84) at jenkins.util.AtmostOneTaskExecutor.submit(AtmostOneTaskExecutor.java:72) at hudson.model.Queue.scheduleMaintenance(Queue.java:928) at hudson.model.Executor.run(Executor.java:265) {quote} {quote}

    Jenkins JIRA | 3 years ago | Grigoriy Milman
    java.lang.OutOfMemoryError: unable to create new native thread
  3. 0

    Build of jenkins job created using CD Pipeline fails - out of memory error with jenkins swarm

    GitHub | 1 year ago | cmoulliard
    java.io.IOException: remote file operation failed: /var/jenkins_home/workspace/gogsadmin-demo at hudson.remoting.Channel@2493dc2f:jenkins-swarm-client-lupyh-9e5b52d6: java.io.IOException: Remote call on jenkins-swarm-client-lupyh-9e5b52d6 failed
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Hearthstone closed

    GitHub | 3 years ago | shakudu
    java.lang.OutOfMemoryError: unable to create new native thread
  6. 0

    OOM related to VPN Status

    GitHub | 2 years ago | aldenml
    java.lang.OutOfMemoryError: unable to create new native thread

  1. Reich 4 times, last 2 weeks ago
  2. Ajeet 46 times, last 4 months ago
  3. Diogo Jaym 1 times, last 5 months ago
  4. brunosatriani 2 times, last 6 months ago
  5. Bardh 4 times, last 7 months ago
1 more registered users
29 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.OutOfMemoryError

    unable to create new native thread

    at java.lang.Thread.start0()
  2. Java RT
    Thread.start
    1. java.lang.Thread.start0(Native Method)
    2. java.lang.Thread.start(Unknown Source)
    2 frames
  3. Hudson :: Remoting Layer
    AtmostOneThreadExecutor.execute
    1. hudson.remoting.AtmostOneThreadExecutor.execute(AtmostOneThreadExecutor.java:88)
    1 frame
  4. Java RT
    AbstractExecutorService.submit
    1. java.util.concurrent.AbstractExecutorService.submit(Unknown Source)
    1 frame
  5. jenkins.util
    AtmostOneTaskExecutor.submit
    1. jenkins.util.AtmostOneTaskExecutor.maybeRun(AtmostOneTaskExecutor.java:84)
    2. jenkins.util.AtmostOneTaskExecutor.submit(AtmostOneTaskExecutor.java:72)
    2 frames
  6. Hudson
    Executor.run
    1. hudson.model.Queue.scheduleMaintenance(Queue.java:928)
    2. hudson.model.Executor.run(Executor.java:265)
    2 frames