Hi Team,

We upgraded our jenkins instance from 2.107.3 to 2.204.3 and sometimes we 
notice that jenkins master is taking lot of time to come up and jenkins 
UI/application is unresponsive.

I took a thread dump while we ran into this issue and noticed that 
application is suffering from deadlock. 

Thread jenkins.util.Timer [#1] is in deadlock with thread 
CpsStepContext.isReady 
[#6]  

jenkins.util.Timer [#1]priority:0x5 - threadId:0x00007F9C4C16EBE0 - 
nativeId:0x5AF5 - nativeId (decimal):23285 - state:BLOCKED
stackTrace:
at jenkins/model/lazy/AbstractLazyLoadRunMap.getByNumber(
AbstractLazyLoadRunMap.java:370)
at jenkins/model/lazy/LazyBuildMixIn.getBuildByNumber(
LazyBuildMixIn.java:228)
at org/jenkinsci/plugins/workflow/job/WorkflowJob.getBuildByNumber(
WorkflowJob.java:232)
at org/jenkinsci/plugins/workflow/job/WorkflowJob.getBuildByNumber(
WorkflowJob.java:103)
at hudson/model/Run.fromExternalizableId(Run.java:2446)
at 
org/jenkinsci/plugins/workflow/support/steps/ExecutorStepExecution$PlaceholderTask.runForDisplay(
ExecutorStepExecution.java:445)
at 
org/jenkinsci/plugins/workflow/support/steps/ExecutorStepExecution$PlaceholderTask.getDisplayName(
ExecutorStepExecution.java:461)
at org/jenkinsci/plugins/jqsmonitoring/buildqueue/QueueJob.<init>(
QueueJob.java:50)
at 
org/jenkinsci/plugins/jqsmonitoring/buildqueue/BuildQueue.retrieveQueueJobs(
BuildQueue.java:87)
at org/jenkinsci/plugins/jqsmonitoring/buildqueue/BuildQueue.<init>(
BuildQueue.java:36)
at org/jenkinsci/plugins/jqsmonitoring/jqscore/JQSMonitoring.<init>(
JQSMonitoring.java:43)
at 
org/jenkinsci/plugins/jqsmonitoring/jqscore/JQSMonitoring$$FastClassByGuice$$a25d5b0d.newInstance(
<generated>)
at com/google/inject/internal/cglib/reflect/$FastConstructor.newInstance(
FastConstructor.java:40)
at com/google/inject/internal/DefaultConstructionProxyFactory$1.newInstance(
DefaultConstructionProxyFactory.java:61)
at com/google/inject/internal/ConstructorInjector.provision(
ConstructorInjector.java:105)
at com/google/inject/internal/ConstructorInjector.access$000(
ConstructorInjector.java:32)
at com/google/inject/internal/ConstructorInjector$1.call(
ConstructorInjector.java:89)
at 
com/google/inject/internal/ProvisionListenerStackCallback$Provision.provision(
ProvisionListenerStackCallback.java:115)
at 
hudson/ExtensionFinder$GuiceFinder$SezpozModule.onProvision(ExtensionFinder.java:567(Compiled
 
Code))
at 
com/google/inject/internal/ProvisionListenerStackCallback$Provision.provision(
ProvisionListenerStackCallback.java:126)
at com/google/inject/internal/ProvisionListenerStackCallback.provision(
Provision 

#######################

 
CpsStepContext.isReady [#6]priority:0x5 - threadId:0x00007F9C6802DE40 - 
nativeId:0x5B72 - nativeId (decimal):23410 - state:BLOCKED
stackTrace:
at org/jenkinsci/plugins/workflow/cps/CpsGroovyShell.doParse(
CpsGroovyShell.java:133)
at org/jenkinsci/plugins/workflow/cps/CpsGroovyShell.reparse(
CpsGroovyShell.java:127)
at org/jenkinsci/plugins/workflow/cps/CpsFlowExecution.parseScript(
CpsFlowExecution.java:561)
at org/jenkinsci/plugins/workflow/cps/CpsFlowExecution.loadProgramAsync(
CpsFlowExecution.java:770)
at org/jenkinsci/plugins/workflow/cps/CpsFlowExecution.onLoad(
CpsFlowExecution.java:740)
at org/jenkinsci/plugins/workflow/job/WorkflowRun.getExecution(
WorkflowRun.java:672)
at org/jenkinsci/plugins/workflow/job/WorkflowRun.onLoad(
WorkflowRun.java:533)
at hudson/model/RunMap.retrieve(RunMap.java:225)
at hudson/model/RunMap.retrieve(RunMap.java:57)
at jenkins/model/lazy/AbstractLazyLoadRunMap.load(
AbstractLazyLoadRunMap.java:501)
at jenkins/model/lazy/AbstractLazyLoadRunMap.load(
AbstractLazyLoadRunMap.java:483)
at jenkins/model/lazy/AbstractLazyLoadRunMap.getByNumber(
AbstractLazyLoadRunMap.java:381)
at hudson/model/RunMap.getById(RunMap.java:205)
at org/jenkinsci/plugins/workflow/job/WorkflowRun$Owner.run(
WorkflowRun.java:921)
at org/jenkinsci/plugins/workflow/job/WorkflowRun$Owner.get(
WorkflowRun.java:932)
at org/jenkinsci/plugins/workflow/cps/CpsStepContext.getExecution(
CpsStepContext.java:217)
at 
org/jenkinsci/plugins/workflow/cps/CpsStepContext.getThreadGroupSynchronously(
CpsStepContext.java:242)
at org/jenkinsci/plugins/workflow/cps/CpsStepContext.access$000(
CpsStepContext.java:97)
at org/jenkinsci/plugins/workflow/cps/CpsStepContext$1.call(
CpsStepContext.java:263)
at org/jenkinsci/plugins/workflow/cps/CpsStepContext$1.call(
CpsStepContext.java:261)
at jenkins/util/ContextResettingExecutorService$2.call(
ContextResettingExecutorService.java:46)
at java/util/concurrent/FutureTask.run(FutureTask.java:277)
at 
java/util/concurrent/ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1153(Compiled
 
Code))
at java/util/concurrent/ThreadPoolExecutor$Worker.run(
ThreadPoolExecutor.java:628)
at java/lang/Thread.run(Thread.java:785)

#############################

Any one ran into the same issue and any help on this is highly appreciated 
please.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/9d1375bf-e7a0-41d5-ae07-cc67acf210e5%40googlegroups.com.

Reply via email to