Can’t create new native thread in Java usually means the OS ran out of file 
handles. Either something has a leak or ulimit needs to be modified.

Ralph

> On Apr 26, 2018, at 9:00 AM, Gary Gregory <[email protected]> wrote:
> 
> How do we fix this?
> 
> Gary
> 
> ---------- Forwarded message ----------
> From: Apache Jenkins Server <[email protected]>
> Date: Thu, Apr 26, 2018 at 11:58 AM
> Subject: Build failed in Jenkins: Log4j 2 2.x #3461
> To: [email protected]
> 
> 
> See <https://builds.apache.org/job/Log4j%202%202.x/3461/display/redirect>
> 
> ------------------------------------------
> [...truncated 1.87 KB...]
>        at hudson.remoting.Request$2.run(Request.java:358)
>        at hudson.remoting.InterceptingExecutorService$1.call(
> InterceptingExecutorService.java:72)
>        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>        at java.util.concurrent.ThreadPoolExecutor.runWorker(
> ThreadPoolExecutor.java:1142)
>        at java.util.concurrent.ThreadPoolExecutor$Worker.run(
> ThreadPoolExecutor.java:617)
>        at java.lang.Thread.run(Thread.java:748)
> Caused by: java.lang.OutOfMemoryError: unable to create new native thread
>        at java.lang.Thread.start0(Native Method)
>        at java.lang.Thread.start(Thread.java:717)
>        at hudson.Proc$LocalProc.<init>(Proc.java:269)
>        at hudson.Proc$LocalProc.<init>(Proc.java:218)
>        at hudson.Launcher$LocalLauncher.launch(Launcher.java:930)
>        at hudson.Launcher$ProcStarter.start(Launcher.java:450)
>        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.
> launchCommandIn(CliGitAPIImpl.java:1992)
>        ... 20 more
> Cloning the remote Git repository
> Cloning repository https://git-wip-us.apache.org/
> repos/asf/logging-log4j2.git
>> git init <https://builds.apache.org/job/Log4j%202%202.x/ws/> # timeout=10
> ERROR: Error cloning remote repo 'origin'
> hudson.plugins.git.GitException: Could not init <https://builds.apache.org/
> job/Log4j%202%202.x/ws/>
>        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$5.
> execute(CliGitAPIImpl.java:772)
>        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.
> execute(CliGitAPIImpl.java:564)
>        at org.jenkinsci.plugins.gitclient.RemoteGitImpl$
> CommandInvocationHandler$1.call(RemoteGitImpl.java:153)
>        at org.jenkinsci.plugins.gitclient.RemoteGitImpl$
> CommandInvocationHandler$1.call(RemoteGitImpl.java:146)
>        at hudson.remoting.UserRequest.perform(UserRequest.java:207)
>        at hudson.remoting.UserRequest.perform(UserRequest.java:53)
>        at hudson.remoting.Request$2.run(Request.java:358)
>        at hudson.remoting.InterceptingExecutorService$1.call(
> InterceptingExecutorService.java:72)
>        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>        at java.util.concurrent.ThreadPoolExecutor.runWorker(
> ThreadPoolExecutor.java:1142)
>        at java.util.concurrent.ThreadPoolExecutor$Worker.run(
> ThreadPoolExecutor.java:617)
>        at java.lang.Thread.run(Thread.java:748)
>        Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call
> to H32
>                at hudson.remoting.Channel.attachCallSiteStackTrace(
> Channel.java:1693)
>                at hudson.remoting.UserResponse.
> retrieve(UserRequest.java:310)
>                at hudson.remoting.Channel.call(Channel.java:908)
>                at org.jenkinsci.plugins.gitclient.RemoteGitImpl$
> CommandInvocationHandler.execute(RemoteGitImpl.java:146)
>                at sun.reflect.GeneratedMethodAccessor743.invoke(Unknown
> Source)
>                at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)
>                at java.lang.reflect.Method.invoke(Method.java:498)
>                at org.jenkinsci.plugins.gitclient.RemoteGitImpl$
> CommandInvocationHandler.invoke(RemoteGitImpl.java:132)
>                at com.sun.proxy.$Proxy137.execute(Unknown Source)
>                at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:
> 1120)
>                at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1160)
>                at hudson.scm.SCM.checkout(SCM.java:495)
>                at hudson.model.AbstractProject.
> checkout(AbstractProject.java:1202)
>                at hudson.model.AbstractBuild$AbstractBuildExecution.
> defaultCheckout(AbstractBuild.java:574)
>                at jenkins.scm.SCMCheckoutStrategy.checkout(
> SCMCheckoutStrategy.java:86)
>                at hudson.model.AbstractBuild$AbstractBuildExecution.run(
> AbstractBuild.java:499)
>                at hudson.model.Run.execute(Run.java:1724)
>                at hudson.maven.MavenModuleSetBuild.run(
> MavenModuleSetBuild.java:543)
>                at hudson.model.ResourceController.execute(
> ResourceController.java:97)
>                at hudson.model.Executor.run(Executor.java:429)
> Caused by: hudson.plugins.git.GitException: Error performing git command
>        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.
> launchCommandIn(CliGitAPIImpl.java:2005)
>        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.
> launchCommandIn(CliGitAPIImpl.java:1964)
>        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.
> launchCommandIn(CliGitAPIImpl.java:1960)
>        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.
> launchCommand(CliGitAPIImpl.java:1597)
>        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$5.
> execute(CliGitAPIImpl.java:770)
>        ... 11 more
> Caused by: java.lang.OutOfMemoryError: unable to create new native thread
>        at java.lang.Thread.start0(Native Method)
>        at java.lang.Thread.start(Thread.java:717)
>        at hudson.Proc$LocalProc.<init>(Proc.java:269)
>        at hudson.Proc$LocalProc.<init>(Proc.java:218)
>        at hudson.Launcher$LocalLauncher.launch(Launcher.java:930)
>        at hudson.Launcher$ProcStarter.start(Launcher.java:450)
>        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.
> launchCommandIn(CliGitAPIImpl.java:1992)
>        ... 15 more
> ERROR: Error cloning remote repo 'origin'
> Retrying after 10 seconds
>> git rev-parse --is-inside-work-tree # timeout=10
> ERROR: Workspace has a .git repository, but it appears to be corrupt.
> hudson.plugins.git.GitException: Error performing git command
>        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.
> launchCommandIn(CliGitAPIImpl.java:2005)
>        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.
> launchCommandIn(CliGitAPIImpl.java:1964)
>        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.
> launchCommandIn(CliGitAPIImpl.java:1960)
>        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.
> launchCommand(CliGitAPIImpl.java:1597)
>        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.
> launchCommand(CliGitAPIImpl.java:1609)
>        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.
> hasGitRepo(CliGitAPIImpl.java:282)
>        at hudson.plugins.git.GitAPI.hasGitRepo(GitAPI.java:232)
>        at sun.reflect.GeneratedMethodAccessor95.invoke(Unknown Source)
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)
>        at java.lang.reflect.Method.invoke(Method.java:498)
>        at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(
> RemoteInvocationHandler.java:922)
>        at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(
> RemoteInvocationHandler.java:896)
>        at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(
> RemoteInvocationHandler.java:853)
>        at hudson.remoting.UserRequest.perform(UserRequest.java:207)
>        at hudson.remoting.UserRequest.perform(UserRequest.java:53)
>        at hudson.remoting.Request$2.run(Request.java:358)
>        at hudson.remoting.InterceptingExecutorService$1.call(
> InterceptingExecutorService.java:72)
>        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>        at java.util.concurrent.ThreadPoolExecutor.runWorker(
> ThreadPoolExecutor.java:1142)
>        at java.util.concurrent.ThreadPoolExecutor$Worker.run(
> ThreadPoolExecutor.java:617)
>        at java.lang.Thread.run(Thread.java:748)
> Caused by: java.lang.OutOfMemoryError: unable to create new native thread
>        at java.lang.Thread.start0(Native Method)
>        at java.lang.Thread.start(Thread.java:717)
>        at hudson.Proc$LocalProc.<init>(Proc.java:269)
>        at hudson.Proc$LocalProc.<init>(Proc.java:218)
>        at hudson.Launcher$LocalLauncher.launch(Launcher.java:930)
>        at hudson.Launcher$ProcStarter.start(Launcher.java:450)
>        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.
> launchCommandIn(CliGitAPIImpl.java:1992)
>        ... 20 more
> Cloning the remote Git repository
> Cloning repository https://git-wip-us.apache.org/
> repos/asf/logging-log4j2.git
>> git init <https://builds.apache.org/job/Log4j%202%202.x/ws/> # timeout=10
> ERROR: Error cloning remote repo 'origin'
> hudson.plugins.git.GitException: Could not init <https://builds.apache.org/
> job/Log4j%202%202.x/ws/>
>        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$5.
> execute(CliGitAPIImpl.java:772)
>        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.
> execute(CliGitAPIImpl.java:564)
>        at org.jenkinsci.plugins.gitclient.RemoteGitImpl$
> CommandInvocationHandler$1.call(RemoteGitImpl.java:153)
>        at org.jenkinsci.plugins.gitclient.RemoteGitImpl$
> CommandInvocationHandler$1.call(RemoteGitImpl.java:146)
>        at hudson.remoting.UserRequest.perform(UserRequest.java:207)
>        at hudson.remoting.UserRequest.perform(UserRequest.java:53)
>        at hudson.remoting.Request$2.run(Request.java:358)
>        at hudson.remoting.InterceptingExecutorService$1.call(
> InterceptingExecutorService.java:72)
>        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>        at java.util.concurrent.ThreadPoolExecutor.runWorker(
> ThreadPoolExecutor.java:1142)
>        at java.util.concurrent.ThreadPoolExecutor$Worker.run(
> ThreadPoolExecutor.java:617)
>        at java.lang.Thread.run(Thread.java:748)
>        Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call
> to H32
>                at hudson.remoting.Channel.attachCallSiteStackTrace(
> Channel.java:1693)
>                at hudson.remoting.UserResponse.
> retrieve(UserRequest.java:310)
>                at hudson.remoting.Channel.call(Channel.java:908)
>                at org.jenkinsci.plugins.gitclient.RemoteGitImpl$
> CommandInvocationHandler.execute(RemoteGitImpl.java:146)
>                at sun.reflect.GeneratedMethodAccessor743.invoke(Unknown
> Source)
>                at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)
>                at java.lang.reflect.Method.invoke(Method.java:498)
>                at org.jenkinsci.plugins.gitclient.RemoteGitImpl$
> CommandInvocationHandler.invoke(RemoteGitImpl.java:132)
>                at com.sun.proxy.$Proxy137.execute(Unknown Source)
>                at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:
> 1120)
>                at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1160)
>                at hudson.scm.SCM.checkout(SCM.java:495)
>                at hudson.model.AbstractProject.
> checkout(AbstractProject.java:1202)
>                at hudson.model.AbstractBuild$AbstractBuildExecution.
> defaultCheckout(AbstractBuild.java:574)
>                at jenkins.scm.SCMCheckoutStrategy.checkout(
> SCMCheckoutStrategy.java:86)
>                at hudson.model.AbstractBuild$AbstractBuildExecution.run(
> AbstractBuild.java:499)
>                at hudson.model.Run.execute(Run.java:1724)
>                at hudson.maven.MavenModuleSetBuild.run(
> MavenModuleSetBuild.java:543)
>                at hudson.model.ResourceController.execute(
> ResourceController.java:97)
>                at hudson.model.Executor.run(Executor.java:429)
> Caused by: hudson.plugins.git.GitException: Error performing git command
>        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.
> launchCommandIn(CliGitAPIImpl.java:2005)
>        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.
> launchCommandIn(CliGitAPIImpl.java:1964)
>        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.
> launchCommandIn(CliGitAPIImpl.java:1960)
>        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.
> launchCommand(CliGitAPIImpl.java:1597)
>        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$5.
> execute(CliGitAPIImpl.java:770)
>        ... 11 more
> Caused by: java.lang.OutOfMemoryError: unable to create new native thread
>        at java.lang.Thread.start0(Native Method)
>        at java.lang.Thread.start(Thread.java:717)
>        at hudson.Proc$LocalProc.<init>(Proc.java:269)
>        at hudson.Proc$LocalProc.<init>(Proc.java:218)
>        at hudson.Launcher$LocalLauncher.launch(Launcher.java:930)
>        at hudson.Launcher$ProcStarter.start(Launcher.java:450)
>        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.
> launchCommandIn(CliGitAPIImpl.java:1992)
>        ... 15 more
> ERROR: Error cloning remote repo 'origin'
> Retrying after 10 seconds
>> git rev-parse --is-inside-work-tree # timeout=10
> ERROR: Workspace has a .git repository, but it appears to be corrupt.
> hudson.plugins.git.GitException: Error performing git command
>        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.
> launchCommandIn(CliGitAPIImpl.java:2005)
>        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.
> launchCommandIn(CliGitAPIImpl.java:1964)
>        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.
> launchCommandIn(CliGitAPIImpl.java:1960)
>        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.
> launchCommand(CliGitAPIImpl.java:1597)
>        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.
> launchCommand(CliGitAPIImpl.java:1609)
>        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.
> hasGitRepo(CliGitAPIImpl.java:282)
>        at hudson.plugins.git.GitAPI.hasGitRepo(GitAPI.java:232)
>        at sun.reflect.GeneratedMethodAccessor95.invoke(Unknown Source)
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)
>        at java.lang.reflect.Method.invoke(Method.java:498)
>        at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(
> RemoteInvocationHandler.java:922)
>        at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(
> RemoteInvocationHandler.java:896)
>        at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(
> RemoteInvocationHandler.java:853)
>        at hudson.remoting.UserRequest.perform(UserRequest.java:207)
>        at hudson.remoting.UserRequest.perform(UserRequest.java:53)
>        at hudson.remoting.Request$2.run(Request.java:358)
>        at hudson.remoting.InterceptingExecutorService$1.call(
> InterceptingExecutorService.java:72)
>        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>        at java.util.concurrent.ThreadPoolExecutor.runWorker(
> ThreadPoolExecutor.java:1142)
>        at java.util.concurrent.ThreadPoolExecutor$Worker.run(
> ThreadPoolExecutor.java:617)
>        at java.lang.Thread.run(Thread.java:748)
> Caused by: java.lang.OutOfMemoryError: unable to create new native thread
>        at java.lang.Thread.start0(Native Method)
>        at java.lang.Thread.start(Thread.java:717)
>        at hudson.Proc$LocalProc.<init>(Proc.java:269)
>        at hudson.Proc$LocalProc.<init>(Proc.java:218)
>        at hudson.Launcher$LocalLauncher.launch(Launcher.java:930)
>        at hudson.Launcher$ProcStarter.start(Launcher.java:450)
>        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.
> launchCommandIn(CliGitAPIImpl.java:1992)
>        ... 20 more
> Cloning the remote Git repository
> Cloning repository https://git-wip-us.apache.org/
> repos/asf/logging-log4j2.git
>> git init <https://builds.apache.org/job/Log4j%202%202.x/ws/> # timeout=10
> ERROR: Error cloning remote repo 'origin'
> hudson.plugins.git.GitException: Could not init <https://builds.apache.org/
> job/Log4j%202%202.x/ws/>
>        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$5.
> execute(CliGitAPIImpl.java:772)
>        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.
> execute(CliGitAPIImpl.java:564)
>        at org.jenkinsci.plugins.gitclient.RemoteGitImpl$
> CommandInvocationHandler$1.call(RemoteGitImpl.java:153)
>        at org.jenkinsci.plugins.gitclient.RemoteGitImpl$
> CommandInvocationHandler$1.call(RemoteGitImpl.java:146)
>        at hudson.remoting.UserRequest.perform(UserRequest.java:207)
>        at hudson.remoting.UserRequest.perform(UserRequest.java:53)
>        at hudson.remoting.Request$2.run(Request.java:358)
>        at hudson.remoting.InterceptingExecutorService$1.call(
> InterceptingExecutorService.java:72)
>        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>        at java.util.concurrent.ThreadPoolExecutor.runWorker(
> ThreadPoolExecutor.java:1142)
>        at java.util.concurrent.ThreadPoolExecutor$Worker.run(
> ThreadPoolExecutor.java:617)
>        at java.lang.Thread.run(Thread.java:748)
>        Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call
> to H32
>                at hudson.remoting.Channel.attachCallSiteStackTrace(
> Channel.java:1693)
>                at hudson.remoting.UserResponse.
> retrieve(UserRequest.java:310)
>                at hudson.remoting.Channel.call(Channel.java:908)
>                at org.jenkinsci.plugins.gitclient.RemoteGitImpl$
> CommandInvocationHandler.execute(RemoteGitImpl.java:146)
>                at sun.reflect.GeneratedMethodAccessor743.invoke(Unknown
> Source)
>                at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)
>                at java.lang.reflect.Method.invoke(Method.java:498)
>                at org.jenkinsci.plugins.gitclient.RemoteGitImpl$
> CommandInvocationHandler.invoke(RemoteGitImpl.java:132)
>                at com.sun.proxy.$Proxy137.execute(Unknown Source)
>                at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:
> 1120)
>                at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1160)
>                at hudson.scm.SCM.checkout(SCM.java:495)
>                at hudson.model.AbstractProject.
> checkout(AbstractProject.java:1202)
>                at hudson.model.AbstractBuild$AbstractBuildExecution.
> defaultCheckout(AbstractBuild.java:574)
>                at jenkins.scm.SCMCheckoutStrategy.checkout(
> SCMCheckoutStrategy.java:86)
>                at hudson.model.AbstractBuild$AbstractBuildExecution.run(
> AbstractBuild.java:499)
>                at hudson.model.Run.execute(Run.java:1724)
>                at hudson.maven.MavenModuleSetBuild.run(
> MavenModuleSetBuild.java:543)
>                at hudson.model.ResourceController.execute(
> ResourceController.java:97)
>                at hudson.model.Executor.run(Executor.java:429)
> Caused by: hudson.plugins.git.GitException: Error performing git command
>        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.
> launchCommandIn(CliGitAPIImpl.java:2005)
>        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.
> launchCommandIn(CliGitAPIImpl.java:1964)
>        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.
> launchCommandIn(CliGitAPIImpl.java:1960)
>        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.
> launchCommand(CliGitAPIImpl.java:1597)
>        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$5.
> execute(CliGitAPIImpl.java:770)
>        ... 11 more
> Caused by: java.lang.OutOfMemoryError: unable to create new native thread
>        at java.lang.Thread.start0(Native Method)
>        at java.lang.Thread.start(Thread.java:717)
>        at hudson.Proc$LocalProc.<init>(Proc.java:269)
>        at hudson.Proc$LocalProc.<init>(Proc.java:218)
>        at hudson.Launcher$LocalLauncher.launch(Launcher.java:930)
>        at hudson.Launcher$ProcStarter.start(Launcher.java:450)
>        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.
> launchCommandIn(CliGitAPIImpl.java:1992)
>        ... 15 more
> ERROR: Error cloning remote repo 'origin'


Reply via email to