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

Jenkins JIRA | Ioannis Mavroukakis | 3 years ago
  1. 0

    When attempting to deploy to a windows share, I consistently get the following exception: CIFS: Connecting from host [xxxxxxxx] CIFS: Connecting with configuration [GiveupDevShare] ... CIFS: Disconnecting configuration [GiveupDevShare] ... FATAL: unable to create new native thread java.lang.OutOfMemoryError: unable to create new native thread at java.lang.Thread.start0(Native Method) at java.lang.Thread.start(Thread.java:640) at jcifs.UniAddress.lookupServerOrWorkgroup(UniAddress.java:173) at jcifs.UniAddress.getAllByName(UniAddress.java:290) at jcifs.UniAddress.getByName(UniAddress.java:245) at jcifs.smb.Dfs.getTrustedDomains(Dfs.java:62) at jcifs.smb.Dfs.resolve(Dfs.java:167) at jcifs.smb.SmbFile.resolveDfs(SmbFile.java:666) at jcifs.smb.SmbFile.send(SmbFile.java:768) at jcifs.smb.SmbFile.close(SmbFile.java:1016) at jcifs.smb.SmbFile.close(SmbFile.java:1022) at jcifs.smb.SmbFile.close(SmbFile.java:1026) at jcifs.smb.SmbFileOutputStream.close(SmbFileOutputStream.java:164) at jenkins.plugins.publish_over_cifs.CifsClient.transferFile(CifsClient.java:107) at jenkins.plugins.publish_over_cifs.CifsClient.transferFile(CifsClient.java:39) at jenkins.plugins.publish_over.BPTransfer.transferFile(BPTransfer.java:172) at jenkins.plugins.publish_over.BPTransfer.transfer(BPTransfer.java:162) at jenkins.plugins.publish_over.BapPublisher.perform(BapPublisher.java:146) at jenkins.plugins.publish_over_cifs.CifsPublisher.perform(CifsPublisher.java:60) at jenkins.plugins.publish_over.BPCallablePublisher.invoke(BPCallablePublisher.java:64) at jenkins.plugins.publish_over.BPCallablePublisher.invoke(BPCallablePublisher.java:37) at hudson.FilePath.act(FilePath.java:905) at hudson.FilePath.act(FilePath.java:878) at jenkins.plugins.publish_over.BPInstanceConfig.perform(BPInstanceConfig.java:124) at jenkins.plugins.publish_over.BPPlugin.perform(BPPlugin.java:109) at jenkins.plugins.publish_over_cifs.CifsBuilderPlugin.perform(CifsBuilderPlugin.java:60) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804) at hudson.model.Build$BuildExecution.build(Build.java:199) at hudson.model.Build$BuildExecution.doRun(Build.java:160) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:586) at hudson.model.Run.execute(Run.java:1593) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:247)

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

    When attempting to deploy to a windows share, I consistently get the following exception: CIFS: Connecting from host [xxxxxxxx] CIFS: Connecting with configuration [GiveupDevShare] ... CIFS: Disconnecting configuration [GiveupDevShare] ... FATAL: unable to create new native thread java.lang.OutOfMemoryError: unable to create new native thread at java.lang.Thread.start0(Native Method) at java.lang.Thread.start(Thread.java:640) at jcifs.UniAddress.lookupServerOrWorkgroup(UniAddress.java:173) at jcifs.UniAddress.getAllByName(UniAddress.java:290) at jcifs.UniAddress.getByName(UniAddress.java:245) at jcifs.smb.Dfs.getTrustedDomains(Dfs.java:62) at jcifs.smb.Dfs.resolve(Dfs.java:167) at jcifs.smb.SmbFile.resolveDfs(SmbFile.java:666) at jcifs.smb.SmbFile.send(SmbFile.java:768) at jcifs.smb.SmbFile.close(SmbFile.java:1016) at jcifs.smb.SmbFile.close(SmbFile.java:1022) at jcifs.smb.SmbFile.close(SmbFile.java:1026) at jcifs.smb.SmbFileOutputStream.close(SmbFileOutputStream.java:164) at jenkins.plugins.publish_over_cifs.CifsClient.transferFile(CifsClient.java:107) at jenkins.plugins.publish_over_cifs.CifsClient.transferFile(CifsClient.java:39) at jenkins.plugins.publish_over.BPTransfer.transferFile(BPTransfer.java:172) at jenkins.plugins.publish_over.BPTransfer.transfer(BPTransfer.java:162) at jenkins.plugins.publish_over.BapPublisher.perform(BapPublisher.java:146) at jenkins.plugins.publish_over_cifs.CifsPublisher.perform(CifsPublisher.java:60) at jenkins.plugins.publish_over.BPCallablePublisher.invoke(BPCallablePublisher.java:64) at jenkins.plugins.publish_over.BPCallablePublisher.invoke(BPCallablePublisher.java:37) at hudson.FilePath.act(FilePath.java:905) at hudson.FilePath.act(FilePath.java:878) at jenkins.plugins.publish_over.BPInstanceConfig.perform(BPInstanceConfig.java:124) at jenkins.plugins.publish_over.BPPlugin.perform(BPPlugin.java:109) at jenkins.plugins.publish_over_cifs.CifsBuilderPlugin.perform(CifsBuilderPlugin.java:60) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804) at hudson.model.Build$BuildExecution.build(Build.java:199) at hudson.model.Build$BuildExecution.doRun(Build.java:160) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:586) at hudson.model.Run.execute(Run.java:1593) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:247)

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

    Eclipse crashes with "Unable to create new native thread" - any ideas? (my settings and info inside)

    Stack Overflow | 5 years ago | Folken
    java.lang.OutOfMemoryError: unable to create new native thread
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    How many threads/process can i run on my 64bit machine

    Stack Overflow | 2 years ago | Upendra
    java.lang.OutOfMemoryError: unable to create new native thread
  6. 0

    Java Memory error: unable to create new native thread

    Stack Overflow | 5 years ago | Joel
    java.lang.OutOfMemoryError: unable to create new native thread
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(Thread.java:640)
    2 frames
  3. jCIFS
    SmbFileOutputStream.close
    1. jcifs.UniAddress.lookupServerOrWorkgroup(UniAddress.java:173)
    2. jcifs.UniAddress.getAllByName(UniAddress.java:290)
    3. jcifs.UniAddress.getByName(UniAddress.java:245)
    4. jcifs.smb.Dfs.getTrustedDomains(Dfs.java:62)
    5. jcifs.smb.Dfs.resolve(Dfs.java:167)
    6. jcifs.smb.SmbFile.resolveDfs(SmbFile.java:666)
    7. jcifs.smb.SmbFile.send(SmbFile.java:768)
    8. jcifs.smb.SmbFile.close(SmbFile.java:1016)
    9. jcifs.smb.SmbFile.close(SmbFile.java:1022)
    10. jcifs.smb.SmbFile.close(SmbFile.java:1026)
    11. jcifs.smb.SmbFileOutputStream.close(SmbFileOutputStream.java:164)
    11 frames
  4. jenkins.plugins.publish_over_cifs
    CifsClient.transferFile
    1. jenkins.plugins.publish_over_cifs.CifsClient.transferFile(CifsClient.java:107)
    2. jenkins.plugins.publish_over_cifs.CifsClient.transferFile(CifsClient.java:39)
    2 frames
  5. jenkins.plugins.publish_over
    BapPublisher.perform
    1. jenkins.plugins.publish_over.BPTransfer.transferFile(BPTransfer.java:172)
    2. jenkins.plugins.publish_over.BPTransfer.transfer(BPTransfer.java:162)
    3. jenkins.plugins.publish_over.BapPublisher.perform(BapPublisher.java:146)
    3 frames
  6. jenkins.plugins.publish_over_cifs
    CifsPublisher.perform
    1. jenkins.plugins.publish_over_cifs.CifsPublisher.perform(CifsPublisher.java:60)
    1 frame
  7. jenkins.plugins.publish_over
    BPCallablePublisher.invoke
    1. jenkins.plugins.publish_over.BPCallablePublisher.invoke(BPCallablePublisher.java:64)
    2. jenkins.plugins.publish_over.BPCallablePublisher.invoke(BPCallablePublisher.java:37)
    2 frames
  8. Hudson
    FilePath.act
    1. hudson.FilePath.act(FilePath.java:905)
    2. hudson.FilePath.act(FilePath.java:878)
    2 frames
  9. jenkins.plugins.publish_over
    BPPlugin.perform
    1. jenkins.plugins.publish_over.BPInstanceConfig.perform(BPInstanceConfig.java:124)
    2. jenkins.plugins.publish_over.BPPlugin.perform(BPPlugin.java:109)
    2 frames
  10. jenkins.plugins.publish_over_cifs
    CifsBuilderPlugin.perform
    1. jenkins.plugins.publish_over_cifs.CifsBuilderPlugin.perform(CifsBuilderPlugin.java:60)
    1 frame
  11. Hudson
    Executor.run
    1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
    2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804)
    3. hudson.model.Build$BuildExecution.build(Build.java:199)
    4. hudson.model.Build$BuildExecution.doRun(Build.java:160)
    5. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:586)
    6. hudson.model.Run.execute(Run.java:1593)
    7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
    8. hudson.model.ResourceController.execute(ResourceController.java:88)
    9. hudson.model.Executor.run(Executor.java:247)
    9 frames