Questions tagged [thread-dump]

When debugging it becomes necessary to dump the thread state of the application, this is usually to find a deadlock, lock contention or leaking connections.

When debugging it becomes necessary to dump the thread state of the application, this is usually to find a deadlock, lock contention or leaking connections.

  • Java:
    • kill -HUP
      • stdout
      • application log file that captures stdout
    • kill -3
      • stdout
      • application log file that captures stdout
    • JDK based, the JRE does not install these programs
      • jstack > dump.txt
      • output is always to stdout, regardless of the logging configuration
      • jvisualvm
      • UI based, has many other features
221 questions
0
votes
1 answer

Tomcat take 100% CPU

Tomcat server takes 100% of CPU but only in PRD. We are not able to reproduce this in other environment. After taking the thread dump we find there are some threads which are on wating / runnable but not able to find how we can find the root…
Gaurav
  • 61
  • 10
0
votes
1 answer

Explain a thread dump information of Java Hotspot virtual machine

Learning and getting a hands on java thread dump I created a thread dump of my IDEA intellij running process. The problem is that I don't understand what it means. Can you explain what this information means and how to read it ? No need to list…
Adelin
  • 18,144
  • 26
  • 115
  • 175
0
votes
1 answer

Thread dump, CPU utilization analysis

We have one issue in our application. As the application runs for somedays, at some point of time the cpu utilization reaches 100%, which leads to slow response from application. As i gone through all link, i got thread top shift+h, and also thread…
ashu
  • 579
  • 2
  • 6
  • 17
0
votes
3 answers

how to generate websphere thread dump without wsadmin on windows server

I have websphere application server v 7 over windows server and I want to generate thread dumps because i have thread hungs, but when I try to get the java cores with wsadmin appears an error, so I want to generate java core files like linux using…
0
votes
0 answers

Tools available to investigate Tomcat startup time

I am in reference to Tomcat's HowTo improve startup time. Can someone please provide informed advice as to how to determine where Tomcat spends time starting up? Should I use jvisualvm, jstack? Are thread dumps the only way to find out more…
balteo
  • 23,602
  • 63
  • 219
  • 412
0
votes
0 answers

JDBC Query Running Indefinatly -locked <0x1b695040> (a com.microsoft.sqlserver.jdbc.TDSWriter) meaning

I am getting this when my web application is very slow i have taken the thread dump and found this . what this indicates? "http-80-173" daemon prio=6 tid=0x5bed2000 nid=0x15f4 runnable [0x6160e000..0x6160fa68] java.lang.Thread.State: RUNNABLE …
Rohitesh
  • 1,514
  • 7
  • 28
  • 51
0
votes
3 answers

Java monitoring tool which will allow to see the stacktrace at "real time"

I work on very large web project which is written in java. when I click some button or do other actions it is hard to me to understand what methods called in application code(because I am new in project and application is really really big). So I…
user1321466
  • 1,889
  • 2
  • 21
  • 29
0
votes
0 answers

Thread dump for a Citrix virtualized process?

I need to do a thread dump to a JAVA application running through Citrix XenApp (on Windows 2008). I'm able to see the process in Task Manager, but when I'm trying to do the thread dump using jstack -l I'm receiving the following error: "Not…
0
votes
0 answers

How to take thread dump for a small java program

If I have a small code which get executed from a jar file (code can't be changed), how to take a thread dump. Is there any command line option that can be pass with java to get the thread dump (just like we can do it from heap dump). The problem…
0
votes
1 answer

How to find the class implementing the thread from a thread dump?

In my thread dump I found this lines: "lir" daemon prio=5 tid=7f927c7b0000 nid=0x121f40000 in Object.wait() [121f3f000] java.lang.Thread.State: TIMED_WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on…
BetaRide
  • 16,207
  • 29
  • 99
  • 177
0
votes
0 answers

Drools: issues while loading resources

we recently introduced Drools into our system and soon after some time our servers started misbehaving( crashing or latency increased), We analyzed the Thread dump and a snippet from the same is as below. Most of the threads from this pool are in…
Santosh Joshi
  • 3,290
  • 5
  • 36
  • 49
0
votes
0 answers

Java heap dump - java.lang.Thread is the top component

I have got the heap dumps by using jmap. I loaded it in eclipse MAT. java.lang.Thread is the top consumer. When I clicked on the immediate dominator, it shows a ArrayList with 17K objects(org.jboss.security.SecurityAssociation$SubjectContext) in…
user1631072
  • 51
  • 2
  • 9
0
votes
1 answer

how we can analyse thread dump when Application hangs

We are facing an issue where our application hangs and we need to restart the application. Here is the thread dump for that. I want to understand how we can analyse the thread dump, I mean is there any way we can reach to code where the issue is…
Abhishek
  • 519
  • 1
  • 6
  • 24
0
votes
4 answers

Multiple threads acquiring the same monitor?

The question is around the discussion "Multiple Java threads seemingly locking same monitor". In our application, we are facing similar issue. Sometimes the application is running extremely slow. Multiple thread dumps have been captured. The thread…
Arnab Biswas
  • 4,495
  • 3
  • 42
  • 60
0
votes
1 answer

What to see in a Thread Dump

I have some applications published in Google Play Market and I keep getting an ANR (Application Not Responding) reports for keyDispatchingTimedOut in my MainActivity. As you know, Google provides me a Thread Dumps with it. I don't know how to…
SmT
  • 323
  • 6
  • 18
1 2 3
14
15