Project

General

Profile

report #7898

using jstack on cdmserver with jsvc reports all non native thrads as BLOCKED

Added by Andreas Kohlbecker 9 months ago. Updated 9 months ago.

Status:
Resolved
Priority:
New
Category:
cdmserver
Target version:
Start date:
11/08/2018
Due date:
% Done:

100%

Severity:
normal
Tags:

Description

in the cdm-server many threads are blocked.

Analysis of this situation:

(Used tool: http://fastthread.io)

cdmserver started in eclipse via cdm-server - start cdm-webapp.launch with one instance

stacktrace taken by

jstack <pid>

cdmserver on edit-production after running for ~24 hours

stacktrace can only be taken by using the -F option:

jstack -F <pid>

otherwise jstack can not attach to the process: 30162: Unable to open socket file: target process not responding or HotSpot VM not loaded

IN this stack trace all non native threads are blocked:

An other option to take stackstraces is using jvisualvm which can attach to the process via the jmx port. The stacktrace taken this way is perfectly usable.


Conclusion: jsvc makes it harder to analyse performance problems on the servers since jstack can not be used to get thread dumps on the commandline

local-1-instance.png View (81.4 KB) Andreas Kohlbecker, 11/08/2018 06:26 PM

edit-prod-24h-jstack.png View (37.7 KB) Andreas Kohlbecker, 11/09/2018 09:13 AM

edit-prod-24h-jvisualvm.png View (78.5 KB) Andreas Kohlbecker, 11/09/2018 09:13 AM


Related issues

Related to Edit - task #5375: cdm-server without jsvc In Progress 11/12/2015

History

#1 Updated by Andreas Kohlbecker 9 months ago

  • Description updated (diff)

#2 Updated by Andreas Kohlbecker 9 months ago

  • File edit-test-starting-up.png added
  • Description updated (diff)

#3 Updated by Andreas Kohlbecker 9 months ago

  • File edit-test-0h.png added
  • Description updated (diff)

#4 Updated by Andreas Kohlbecker 9 months ago

next thing to test: start cdm-server without jsvc and analyze the stacks again.

#5 Updated by Andreas Kohlbecker 9 months ago

  • Subject changed from many BLOCKED threads in the cdmserver to using jstack on cdmserver with jsvc reports all non native thrads as BLOCKED
  • Description updated (diff)
  • Status changed from New to In Progress
  • % Done changed from 0 to 50

#7 Updated by Andreas Kohlbecker 9 months ago

  • Description updated (diff)

#8 Updated by Andreas Kohlbecker 9 months ago

  • File deleted (edit-test-17h.png)

#9 Updated by Andreas Kohlbecker 9 months ago

  • File deleted (edit-test-starting-up.png)

#10 Updated by Andreas Kohlbecker 9 months ago

  • File deleted (edit-test-0h.png)

#11 Updated by Andreas Kohlbecker 9 months ago

  • Description updated (diff)
  • Status changed from In Progress to Resolved
  • % Done changed from 50 to 100

#12 Updated by Andreas Kohlbecker 9 months ago

Conclusion: jsvc makes it harder to analyse performance problems on the servers since jstack can not be used to get thread dumps on the commandline

#13 Updated by Andreas Kohlbecker 9 months ago

  • Related to task #5375: cdm-server without jsvc added

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 40 MB)