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
2 answers

Web application freezes. How do I find the reason?

The application is running on apache tomcat 7.0.37. It is a Java/GWT application using JPA and MySql. Sometimes we find it completely unresponsive. Today was the 2nd time it happened in 5 months. It works fine after restart. Both the time this…
Kisor Biswal
  • 153
  • 1
  • 2
  • 10
0
votes
1 answer

How can i make sure sure the blockage happened on my code

Recently i have a blocked thread situation. The threadump said the following "TP-Processor338" daemon prio=10 tid=0x00002aaabd753800 nid=0x37ee runnable [0x0000000046681000] java.lang.Thread.State: RUNNABLE at…
Saurabh Kumar
  • 16,353
  • 49
  • 133
  • 212
0
votes
1 answer

High cpu usage during JSF lifecycle phase execution

In our performance test we encountered a high cpu usage (100%) and the thread dumps indicated that most of the times the threads are either executing restore view or render response phase of the JSF lifecycle or they are blocked while accessing the…
Andy Dufresne
  • 6,022
  • 7
  • 63
  • 113
0
votes
1 answer

what's this file in java? core.26416, heap dump or thread dump?

core.26416 ,what's this file in java? which tool can anaylst it? what's the extension for java thread dump , heap dump and core? what's the difference between thread dump/heap dump and core dump?
jiafu
  • 6,338
  • 12
  • 49
  • 73
0
votes
1 answer

unix script to collect the thread dump logs of a process

I am trying to generate an issue regarding HashMap.put function.I have written a test code which will run more than 100 threads.. by using jstack or kill I'am able to get the thread dump of a particular thread of my process..The problem is I can not…
kiddo
  • 1,596
  • 7
  • 31
  • 60
0
votes
0 answers

Weird java thread dump output

I have a thread dump of a java process (kill -3 output), and I see a weird issue - I see there are a lot of thread blocked since they are waiting to lock on an objcet, but I don't see any thread that holds this lock: grep 0x00002aab9e9454a0…
duduamar
  • 3,816
  • 7
  • 35
  • 54
-1
votes
1 answer

Running jstack inside Docker container throws "Permission Denied"

I am trying to get a thread dump of a Java service running inside Docker container. I got into the container terminal using the following command. sudo docker exec -u 1000:0 -ti MyService /bin/bash When I now run the following jstack…
AnOldSoul
  • 4,017
  • 12
  • 57
  • 118
-1
votes
1 answer

Incomplete Thread Dump on Control+Break

Noticed weird thing when running simple Spring Boot application in IntelliJ IDEA CE 2018.3: Pressing "Dump Threads" button in Run view (or pressing Control+Break in the same view) leads to thread dump that is incomplete despite promising "Full…
Yuriy Kiselev
  • 248
  • 3
  • 8
-1
votes
1 answer

java: how killall -3 works when multiple processes are running?

I understand that we can use killall -3 java to get the threaddump. My question is: If multiple java processes are running, which process's thread dump is taken ? Or are thread dumps taken for all processes ?
Sruts
  • 88
  • 7
-1
votes
1 answer

It is best to view the thread dump with an analysis tool:

It is best to view the thread dump with an analysis tool: http://www.cubrid.org/blog/dev-platform/how-to-analyze-java-thread-dumps/ http://java.net/projects/tda A single thread dump is sometimes difficult to assess what is actually happening.…
anish
  • 6,884
  • 13
  • 74
  • 140
-4
votes
1 answer

Performance issue in Websphere8.5

We migrated web application from jsf1.0 to 1.2 and deployed in Websphere 8.5. EArlier application was deployed in Websphere6.0. We are facing performance issue during SOAK testing. Got some thread hung message in sysout logs also i observe lot of…
Rag7
  • 1
  • 2
1 2 3
14
15