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

Thread Missing in Java Thread Dump

I'm using one thread which i set a name "LegacyMsgConsumer-Main-Thread" to get messages from a MsgQueue , and then put those inside a ThreadPoolExecutor to handle. this service works ok the at the beginning(I can see from the mornitor showing that…
Adams.H
  • 1,603
  • 4
  • 20
  • 29
0
votes
1 answer

Many threads are blocked and memory from old gen not releasing

I am using tomcat server and when i took thread dump i can see many threads are blocked (172) and other threads are IN_NATIVE (27). Almost many blocked threads are like smiler to below. Can some one help what may be the reason. My 8GB OldGen space…
veeras
  • 61
  • 1
  • 4
  • 11
0
votes
0 answers

I need some help understanding the jstack thread log

There is an application that invokes JRE 1.7.0_80 to perform an "Add screenshot" process. That is the only process where JRE is being used. The support team of that application discovered that this feature works good for some time, but after doing…
0
votes
1 answer

how to get thread dump of a process running different VM through java code

I wanted to get the Thread Dump and Heap Dump of the process by its process name that is running in my local but in different Virtual Machine. I tried using the ThreadMXBean, as I read, it supports for the processes that runs in same VM. If it is…
Gireesh Bhat
  • 139
  • 1
  • 1
  • 7
0
votes
0 answers

Extra threads in solr thread dump dashboard

I am using solr 5.4.0 with java version "1.7.0_95" and in my solr dashboard I am seeing some threads in WAITING state. I have restarted solr and they are still there. The data in solr dashboard thread dump section is lifecycleSupervisor-13-9…
Aks
  • 183
  • 2
  • 11
0
votes
2 answers

Where will the output file goes when we do "kill -3 "

I want to understand what went wrong with the running process in Jboss. So I did kill -3 , but I was not able to fing the thread dump file.
Ranjith Reddy
  • 183
  • 2
  • 12
0
votes
3 answers

Websphere - frequent thread/heap dump generation

Our application in prod environment is generating frequent heap/thread dumps while running very large reports eventually resulting in JVM failure. WebSphere is the server and heap size is set to 1024/2048(initial/max) across all nodes. What are…
yonikawa
  • 581
  • 1
  • 9
  • 32
0
votes
1 answer

Tool to parse Java thread dump output

The Dropwizard metrics library has a servlet to output a thread dump of the server: https://github.com/dropwizard/metrics/blob/3.2-development/metrics-servlets/src/main/java/com/codahale/metrics/servlets/ThreadDumpServlet.java Is there any existing…
Pinch
  • 2,768
  • 3
  • 28
  • 44
0
votes
0 answers

Web logic thread dump analysis : HttpSession is invalid

Hi I am very new to thread dump analysis so please excuse. There was an increase in WL queue, while trying to analyze I got this below error, several(more than 1000) times. Can anybody help me what is the issue with the below one, and how does…
Prakash
  • 13
  • 2
  • 9
0
votes
2 answers

Thread Dump during Full GC

I am wondering whether is it possible to obtain a Thread Dump during a Full GC. What am currently doing now, Obtain the Timestamp / Datestamp during a Full GC Compare it with the logs and narrow down the request or action that might have triggered…
Magesh Kumaar
  • 1,485
  • 2
  • 10
  • 29
0
votes
1 answer

Thread dump analysis when live server has high CPU usage

From the perspective of a typical MVC/web application developed in Java using some database: Let's say the app server is hosted on one server and the database is hosted on another server. If we get high CPU usage/slowness on live on server (hosting…
0
votes
1 answer

Exception while thread dump generating using wsadmin on linux

I am trying to generate thread dumps using websphere7 on linux, by trying to execute: $AdminControl invoke Server1 dumpThreads But I am getting this Exception: WASX7015E: Exception running command: "$AdminControl invoke Server1 dumpThreads";…
0
votes
2 answers

Is there a simple way to generate a jstack for each running jvm?

I would like to go like this jstack ALL or something like that so i can get the thread dump for all jvms on my system. Can it be done?
Nicholas DiPiazza
  • 10,029
  • 11
  • 83
  • 152
0
votes
1 answer

IBM WAS 5.1 / Tread dump analysis: Servlet.Engine.Transports stuck on java.net.SocketInputStream.socketRead0

I am running WAS 5.1 with Sun 1.4.2 Java on a Solaris 10 box. Trying to figure out why the application becomes unresponsive. I see in a thread dump that most threads named Servlet.Engine.Transport[...] remain stuck on this stack…
befo88
  • 43
  • 1
  • 5
0
votes
1 answer

Blocking threads using javassist in web app

Could somebody help me and explain what exactly is going on, looking at the following thread dump. It is a web application running on Tomcat 7 and we experience that some requests do not get answered: "ajp-bio-8012-exec-161" daemon prio=10…