Project

General

Profile

Actions

report #7898

closed

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

Added by Andreas Kohlbecker about 4 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
New
Category:
cdmserver
Target version:
-
Start date:
Due date:
% Done:

100%

Estimated time:
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


Files

local-1-instance.png (81.4 KB) local-1-instance.png Andreas Kohlbecker, 11/08/2018 06:26 PM
edit-prod-24h-jstack.png (37.7 KB) edit-prod-24h-jstack.png Andreas Kohlbecker, 11/09/2018 09:13 AM
edit-prod-24h-jvisualvm.png (78.5 KB) edit-prod-24h-jvisualvm.png Andreas Kohlbecker, 11/09/2018 09:13 AM

Related issues

Related to EDIT - task #5375: cdm-server without jsvcIn ProgressAndreas Kohlbecker

Actions
Actions #1

Updated by Andreas Kohlbecker about 4 years ago

  • Description updated (diff)
Actions #2

Updated by Andreas Kohlbecker about 4 years ago

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

Updated by Andreas Kohlbecker about 4 years ago

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

Updated by Andreas Kohlbecker about 4 years ago

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

Actions #5

Updated by Andreas Kohlbecker about 4 years 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
Actions #7

Updated by Andreas Kohlbecker about 4 years ago

  • Description updated (diff)
Actions #8

Updated by Andreas Kohlbecker about 4 years ago

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

Updated by Andreas Kohlbecker about 4 years ago

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

Updated by Andreas Kohlbecker about 4 years ago

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

Updated by Andreas Kohlbecker about 4 years ago

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

Updated by Andreas Kohlbecker about 4 years 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

Actions #13

Updated by Andreas Kohlbecker about 4 years ago

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

Updated by Andreas Müller over 1 year ago

  • Subject changed from using jstack on cdmserver with jsvc reports all non native thrads as BLOCKED to using jstack on cdmserver with jsvc reports all non native threads as BLOCKED
Actions #15

Updated by Andreas Müller over 1 year ago

This ticket is marked as resolved and 100% in Unassigned milestone. Can we fully close it and remove milestone or move to correct milestone?

Actions #16

Updated by Andreas Kohlbecker over 1 year ago

  • Status changed from Resolved to Closed
Actions #17

Updated by Andreas Müller over 1 year ago

  • Target version deleted (Unassigned CDM tickets)
Actions

Also available in: Atom PDF