User Lookup Performances Issues due to hudson.model.User#getOrCreate


  • Jenkins is getting slow and eventually freezes
  • Many slow-requests and / or threads that are WAITING trying to retrieve user information from the file system
"Handling GET /m2/securityRealm/finishLogin from X.X.X.X : RequestHandlerThread[#4449]" [...]
	at hudson.model.User.getOrCreate(
	at hudson.model.User.getById(
	at hudson.model.User$UserIDCanonicalIdResolver.resolveCanonicalId(
	at hudson.model.User.get(
	at hudson.model.User.get(
	at hudson.model.User.get(
  • Many slow-requests and / or threads that are WAITING trying to get user information from the file system (Pipeline Stage View)
"Handling GET /job/myJob/job/develop/1/wfapi/changesets from X.X.X.X : RequestHandlerThread[#13]" [...]



Related Issue(s)


This is caused by a known issue JENKINS-43936. Jenkins always looks for user information in the configuration files (file system) even though it already has the information in memory. This results in lots of I/O operations which could lead to performance issues and Jenkins becoming unresponsive.

This can cause performance issues, especially for large instances. Symptoms are a large number of threads requesting user information from the file system, instance unresponsive, users unable to login. When the server and/or the remote storage is overloaded, Jenkins eventually freezes and needs to be restarted.

Note: processes and requests that retrieve User information may be impacted. In particular, Pipeline jobs may exacerbate the situation since Pipeline Stage View Plugin attempts to resolve authors of ChangeLog entries of the ChangeSet to specific users, and this API is invoked with each page view, so it is hit frequently. For more details and a potential workaround, please have look at JENKINS-35484.


This issue has been fixed and released in Jenkins 2.58. The issue has been backported to the Jenkins LTS 2.46.3.

Therefore the solution is to upgrade:

  • CJE: upgrade to version 1.7.0 or later
  • CJP / CJT: upgrade to version 2.46.3.x or later
  • Jenkins LTS: upgrade to version 2.46.3 later
Have more questions? Submit a request


Please sign in to leave a comment.