thread-dump

Thread dump blocked AND locked

老子叫甜甜 提交于 2019-12-19 10:01:35
问题 This is similar to Java thread dump: BLOCKED thread without "waiting to lock ...". Basically, I am seeing a BLOCKED thread but it has the lock it is waiting for: "pool-1-thread-60" prio=10 tid=0x00007fbf10017000 nid=0x210 waiting for monitor entry [0x00007fbed64e3000] java.lang.Thread.State: BLOCKED (on object monitor) at org.apache.log4j.Category.callAppenders(Category.java:204) - locked <0x0000000742444ad0> (a org.apache.log4j.Logger) at org.apache.log4j.Category.forcedLog(Category.java:391

100 threads TIMED_WAITING in tomcat, causing it to stall as total number of threads crosses 200

社会主义新天地 提交于 2019-12-17 23:25:29
问题 Recently one of our production tomcat server became unresponsive because tomcat's busy threads shot upto 200. When we took thread dump before restarting we got 100 threads in TIMED_WAITING state like these 3 threads: ""http-bio-7007"-exec-241" daemon prio=10 tid=0x00002aaab107b000 nid=0x59df waiting on condition [0x0000000051239000] java.lang.Thread.State: TIMED_WAITING (parking) at sun.misc.Unsafe.park(Native Method) - parking to wait for <0x0000000580d877d0> (a java.util.concurrent.locks

Taking thread dumps in production

只愿长相守 提交于 2019-12-17 21:56:22
问题 I am analyzing the differences between approaches for taking thread dumps. Below are the couple of them I am researching on Defining a jmx bean which triggers jstack through Runtime.exec() on clicking a declared bean operation. Daemon thread executing "ManagementFactory.getThreadMXBean().dumpAllThreads(true, true)" repeatedly after a predefined interval. Comparing the thread dump outputs between the two, I see the below disadvantages with approach 2 Thread dumps logged with approach 2 cannot

Thread Dump Analysis Tool / Method [closed]

时光怂恿深爱的人放手 提交于 2019-12-17 10:10:11
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . When the Java application is hanging, you don't even know the use case that is leading to this and want to investigate, I understand

Thread Dump Analysis Tool / Method [closed]

两盒软妹~` 提交于 2019-12-17 10:09:17
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . When the Java application is hanging, you don't even know the use case that is leading to this and want to investigate, I understand

Interpreting a tomcat thread dump and diagnosing a deadlock

随声附和 提交于 2019-12-13 02:23:09
问题 I have the following thread dump (see below) and I am not sure whether I have a deadlock. Can anyone please advise? 2013-03-22 08:52:59 Full thread dump Java HotSpot(TM) 64-Bit Server VM (23.7-b01 mixed mode): "Attach Listener" daemon prio=10 tid=0x00007f68e8001000 nid=0x41bd waiting on condition [0x0000000000000000] java.lang.Thread.State: RUNNABLE Locked ownable synchronizers: - None "http-bio-8080-exec-10" daemon prio=10 tid=0x00007f68840a2800 nid=0x41b5 in Object.wait()

kill -3 return empty

痴心易碎 提交于 2019-12-11 05:11:22
问题 I have a java application, that seems to be stuck. I tried kill -3 but the output is empty (it is redirected to file but nothing is there). what way can I see what it is doing? EDIT: I tried jstack but it crashed: Linux # /usr/pkgs/java/1.6.0.25/bin/jstack -F -l 12666 Attaching to process ID 12666, please wait... A fatal error has been detected by the Java Runtime Environment: SIGSEGV (0xb) at pc=0xaf121777, pid=5423, tid=2937191328 JRE version: 6.0_25-b06 Java VM: Java HotSpot(TM) Server VM

How to collect heap dumps of any java process

送分小仙女□ 提交于 2019-12-06 21:18:58
问题 I am new to Heaps , can anyone suggest how can i take heap dump of any java process (like Jmeter). I read about jmap command , but i am not getting where and how to execute / write it (in eclipse or cmd). It might be a very basic question but still suggestions are requested.Can i download jmap.exe and jhat.exe from any where? Thank You 回答1: Here is the command: <JDK_HOME>/jmap -F -dump:live,format=b,file=<file_name.hprof> <process_id> You can mention the file location here in this command. 来源

What is “Locked ownable synchronizers” in thread dump?

╄→гoц情女王★ 提交于 2019-12-04 08:31:46
问题 I am trying to understand what does Locked ownable synchronizers refer to in a thread dump? I started using ReentrantReadWriteLock have a thread in WAITING state, waiting for a ReentrantReadWriteLock$FairSync in the "locked ownable synchronizers" list of another thread in WAITING state (a ThreadPoolExecutor ). I couldn't find much information about that. Is it some kind of locks "passed onto" the thread? I'm trying to figure out where my deadlock comes from and I can't see any thread actively

Java thread dump: WAITING (on object monitor) - what is it waiting on?

和自甴很熟 提交于 2019-12-03 17:17:31
问题 there was a similar question asked java-thread-dump-waiting-on-object-monitor-line-not-followed-by-waiting-on, but there was no concrete answer, so I will ask my question in hopes to get more info... In the following thread dump I see that the thread is in the "WAITING (on object monitor)" state - but there is no line with "waiting on " that would indicate what it is waiting for. How do I interpret this thread stack and find out why (and what resource) this thread is waiting on?