Today, my github pull request Jenkins jobs are continually failing with messages
similar to this - Java can't create threads.
For example:
[Apache UIMA Java SDK (GitHub PR)] $
/home/jenkins/tools/java/latest1.8/bin/java -Xmx4g -Xms4g -cp
/home/jenkins/jenkins-slave/maven33-agent.jar:/home/jenkins/tools/maven/apache-maven-3.3.9/boot/plexus-classworlds-2.5.2.jar:/home/jenkins/tools/maven/apache-maven-3.3.9/conf/logging
jenkins.maven3.agent.Maven33Main /home/jenkins/tools/maven/apache-maven-3.3.9
/home/jenkins/jenkins-slave/remoting.jar
/home/jenkins/jenkins-slave/maven33-interceptor.jar
/home/jenkins/jenkins-slave/maven3-interceptor-commons.jar 33042
Error occurred during initialization of VM
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 java.lang.ref.Reference.<clinit>(Reference.java:232)
This message, is because the OS can't create a new thread. So far, it's retried
multiple (maybe 6+) times, always getting this failure.Any workarounds,
appreciated! Ref:
https://builds.apache.org/job/Apache%20UIMA%20Java%20SDK%20(GitHub%20PR)/38/console
-Marshall
On 1/12/2020 11:45 AM, Martin wrote:
> Hi,
>
> the builds on H23 fail consistently with:
> # There is insufficient memory for the Java Runtime Environment to continue.
> # Cannot create GC thread. Out of system resources.
>
> Other nodes run fine. Could you please check or restart the node?
>
> Regards
>
> Martin
>
>
>