Details
-
Bug
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Not A Defect
-
None
Description
Please see here - https://issues.jenkins.io/browse/JENKINS-65873?focusedCommentId=424033&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-424033 and ticket in general. This issue only happens when there is a git checkout stage in the pipeline. One suggestion here - https://github.com/jenkinsci/remoting/pull/505#issuecomment-1062281877 - is to downgrade the git client plugin to 3.7.0. It seems that the suspicion is somewhere on the git side of things. Any ideas, suggestions, things we can do to help debug ?
Attachments
Issue Links
- relates to
-
JENKINS-65873 java.lang.OutOfMemoryError: unable to create new native thread
-
- Fixed but Unreleased
-
I must be missing the context. The git checkout for a job happens on an agent, not on the controller. Usually, the agent is only performing a single job before it exits. I assumed that the message about being unable to create a new native thread was being reported by the agent, not by the controller. Is the message happening on the agent or on the controller?
My suggestion to disable the performance optimization was offered just in case the git plugin was ignoring the fact that you have not enabled JGit. Switching to JGit on the controller will switch from forking a separate git process to instead perform the git operations inside the Jenkins process (controller or agent, as required by the context). We found in performance testing that it was faster to use JGit with small repositories and to use CLI git with large repositories. Your mileage may vary (as it does in almost all performance related topics).