• Forums
    • Public Forums
      • Community Connect
      • Dynatrace
        • Dynatrace Open Q&A
      • Application Monitoring & UEM
        • AppMon & UEM Open Q&A
      • Network Application Monitoring
        • NAM Open Q&A
  • Home
  • Public Forums
  • Application Monitoring & UEM
  • AppMon & UEM Open Q&A
avatar image
Question by Paul S. · Feb 05, 2015 at 11:51 PM ·

dynaTrace 6.x thread dump no Owned by

Hello Guys,

any idea why the owned by might be missing if I create a thread dump? Problem is that we created this as we had an issue, bounced the server and issue is gone. We know that something was blocked but now we cannot find what, or better to say by what.

I read this article: http://apmblog.dynatrace.com/2012/10/25/3-steps-to-diagnose-stuck-transactions-in-minutes/

Thanks in advance,

Paul

 

Comment

People who like this

0 Show 0
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

7 Replies

  • Sort: 
  • Most voted
  • Newest
  • Oldest
avatar image

Answer by Paul S. · Feb 11, 2015 at 03:16 AM

Same here. I build an unit test for this code (some old stuff where I don't even know then it was written nor by whom to ask).

In the end it sorts, thats it and calls compare, also not that hard. In the unit test it is fine for more then 200 elements and 50 threads. No block. But in the environment for some reason the code code stuck and I have no clue why.

I wonder if the thread dump could be converted to a normal one, maybe here we could see more. As more then 1000 of these threads is quite un-usual. Sorting Strings / well here javax.management.ObjectInstance.ObjectInstance(String, String) should not be an issue. Even if the code is old.

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by Andreas G. · Feb 11, 2015 at 03:07 AM

Well - it seems that most of your blocked threads are stuck in this call stack:

# Class Method Line Source File
0 java.util.Arrays copyOf(char[], int) 2367 Arrays.java
1 java.lang.AbstractStringBuilder expandCapacity(int) 130 AbstractStringBuilder.java
2 java.lang.AbstractStringBuilder ensureCapacityInternal(int) 114 AbstractStringBuilder.java
3 java.lang.AbstractStringBuilder append(java.lang.String) 415 AbstractStringBuilder.java
4 java.lang.StringBuilder append(java.lang.String) 132 StringBuilder.java
5 java.lang.StringBuilder append(java.lang.Object) 128 StringBuilder.java
6 javax.management.ObjectInstance toString() 152 ObjectInstance.java
7 ORG.oclc.infra.util.SortedVector compareTo(java.lang.Object, java.lang.Object) 148 SortedVector.java
8 ORG.oclc.infra.util.SortedVector sort() 136 SortedVector.java
9 ORG.oclc.infra.util.SortedVector sortVector(java.lang.Object[]) 83 SortedVector.java
10 ORG.oclc.infra.util.SortedVector <init>(java.lang.Object[]) 69 SortedVector.java
11 ORG.oclc.infra.ops.api.OpsMBeanClient getAllObjectInstances(java.lang.String) 1189 OpsMBeanClient.java

These are all threads that handle MBean Requests. I dont see these threads waiting on monitors though 

 

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by Paul S. · Feb 11, 2015 at 02:40 AM

I am confused as they are in the state "blocked" and ~1000 of them, which is very unusual as usually every 5 mins we have just 4 of them running for around 200ms. The status blocked somehow indicates to me that they are waiting for something, not sure what they are waiting for ...

Does this make sense to you?

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by Andreas G. · Feb 11, 2015 at 01:37 AM

Thanks. Well - I dont see a whole lot unusual here. It just means that none of these threads in waiting state are actually waiting on one of these monitors.

You can click on each thread and look at the stack trace to see where these threads are waiting. It just seems they are not waiting on one of these monitors owned by other threads

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by Paul S. · Feb 11, 2015 at 01:29 AM

Sorry attached the wrong dump (sad)

Here the correct one: Blocked iSoft Jan 26, 2015.dts

 

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by Paul S. · Feb 10, 2015 at 08:27 PM

Done, here is the dump:

<-- deleted was wrong -->

Is where a way to convert it to a normal java thread dump?

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by Andreas G. · Feb 10, 2015 at 09:39 AM

Hi Paul

Any chance you can export such as Thread Dump?

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

How to get started

First steps in the forum
Read Community User Guide
Best practices of using forum

NAM 2019 SP5 is available


Check the RHEL support added in the latest NAM service pack.

Learn more

LIVE WEBINAR

"Performance Clinic - Monitoring as a Self Service with Dynatrace"


JANUARY 15, 3:00 PM GMT / 10:00 AM ET

Register here

Follow this Question

Answers Answers and Comments

1 Person is following this question.

avatar image

Forum Tags

dotnet mobile monitoring load iis 6.5 kubernetes mainframe rest api dashboard framework 7.0 appmon 7 health monitoring adk log monitoring services auto-detection uem webserver test automation license web performance monitoring ios nam probe collector migration mq web services knowledge sharing reports window java hybris javascript appmon sensors good to know extensions search 6.3+ server documentation easytravel web dashboard kibana system profile purelytics docker splunk 6.1 process groups account 7.2 rest dynatrace saas spa guardian appmon administration production user actions postgresql upgrade oneagent measures security Dynatrace Managed transactionflow technologies diagnostics user session monitoring unique users continuous delivery sharing configuration alerting NGINX splitting business transaction client 6.3 installation database scheduler apache mobileapp RUM php dashlet azure purepath agent 7.1 appmonsaas messagebroker nodejs 6.2 android sensor performance warehouse
  • Forums
  • Public Forums
    • Community Connect
    • Dynatrace
      • Dynatrace Open Q&A
    • Application Monitoring & UEM
      • AppMon & UEM Open Q&A
    • Network Application Monitoring
      • NAM Open Q&A