Java Virtual Machine (JVM) Stack Trace dumper tool.
Questions tagged [jstack]
149 questions
54
votes
11 answers
jstack - well-known file is not secure
I am running tomcat 5.5 on x86_64 CentOS 5.7 using 32-bit Oracle Java 1.6.0.
JVM process used by tomcat has 6421 pid. Tomcat is working fine.
When run jstack it fails with:
[root@mybox ~]# jstack 6421
6421: well-known file is not secure
To get any…

Michał Šrajer
- 30,364
- 7
- 62
- 85
51
votes
10 answers
jstack: Target process not responding
I am running Ubuntu server edition and I wanted to take a thread dump of Tomcat.
So, I first tried to find out which PID tomcat uses:
$ jps -l
5809 sun.tools.jps.Jps
But it's not there?
So, I used top instead and found out the PID 5730.
Then I…

Timo Ernst
- 15,243
- 23
- 104
- 165
33
votes
2 answers
How does jstack -F affect a running Java process?
I am trying to diagnose a problem where a Java web application I'm using (Jenkins) becomes unresponsive. If I run jstack without the -F flag it doesn't give me anything, but if I put the flag in to force a thread dump not only do I get a result, but…

Jordan Bentley
- 1,309
- 1
- 8
- 28
28
votes
5 answers
Jstack and Not enough storage is available to process this command
I'm trying to run jstack command on my java application. Application is rather big, running inside jboss AS occupying about 4gb of memory. OS is Windows Server 2003 Standard edition. Every time i get an error "Not enough storage is available to…

tropikalista
- 1,629
- 3
- 19
- 35
28
votes
1 answer
Gradle build stuck at "Waiting to acquire shared lock on daemon addresses registry."
I'm currently using HP Fortify tool to scan for security vulnerabilities in a project. At the time of scanning Fortify's CLI allows build tools to integrate into its CLI commands so as to build and simultaneously scan the files present in the…

Sekhar Routray
- 393
- 3
- 7
24
votes
4 answers
Java thread dump: BLOCKED thread without "waiting to lock ..."
I'm having difficulties in understanding the thread dump I got from jstack for a Spring MVC web application running on Tomcat 6 (java 1.6.0_22, Linux).
I see blocking threads (that cause other threads to wait) which are blocked themselves, however…

Oliver
- 361
- 1
- 2
- 6
18
votes
4 answers
jstack not working on server
We use jstack on servers to detect if java apps are getting deadlocked. It's not working on one of our Linux servers. I think O/S version is:
$cat /etc/issue.net
Red Hat Enterprise Linux Server release 5.6 (Tikanga)
Kernel \r on an \m
Java version…

Sam Goldberg
- 6,711
- 8
- 52
- 85
18
votes
2 answers
Jstack and Jstat stopped working with upgrade to JDK6u23
We recently upgraded from JDK6u20 (Linux, 32bit and 64bit) to JDK6u23. Since then, we cannot longer use the tools jstack and jstat to get monitoring information from the running process. If we switch back to JDK6u20, everything works fine.
We are…

ReneS
- 3,535
- 2
- 26
- 35
18
votes
5 answers
Getting the Java thread id and stack trace of run-away Java thread
On my busiest production installation, on occasion I get a single thread that seems to get stuck in an infinite loop. I've not managed to figure out who is the culprit, after much research and debugging, but it seems like it should be possible. …

Stu Thompson
- 38,370
- 19
- 110
- 156
17
votes
3 answers
kill -3 or jstack : What is the difference?
I want to get the thread dump of my web app that running on a jboss server.
I found two solutions for my problem :
Using the unix command : kill -3
Using the jstack tool that exists in the JDK.
Can anyone explain to me the difference between…

Anass
- 6,132
- 6
- 27
- 35
15
votes
2 answers
Java Thread monitoring. How to find out non daemon live threads?
I see in JConsole that I still have 2 non daemon threads but I can't find out which exactly (total number of thread is beyond 30).
Visual VM doesn't provide such information.

Bax
- 4,260
- 5
- 43
- 65
14
votes
2 answers
Sun JDK /Open JDK on Cygwin
Is any version of Sun JDK or Open JDK available to be installed on cygwin.
Reason I am looking for this option is: There are many tools (e.g. jStack, jMap) which are available in unix versions of JDK but not for windows version. I need to exploit…

Sandeep Jindal
- 14,510
- 18
- 83
- 121
14
votes
4 answers
get java version of a running java process
I can use jps to list running java processes and use jstack -l process_id to get a stack information of a running java process. I want to know this process runs on which java version. Is there a way to do it? I don't have to use jstack tool.…

user3282611
- 870
- 1
- 9
- 9
12
votes
3 answers
How 'expensive' is it to execute jstack on a running JVM?
I'm considering whipping up a script to
run once a minute (or every five minutes)
run jstack against a running JVM in production
parse the jstack output and tally up things I'm interested in
export the results for graphing 24/365 by a centralized…

Stu Thompson
- 38,370
- 19
- 110
- 156
10
votes
1 answer
Is it necessary to run jstack -F as root (on linux) and if so why?
Is it necessary to run jstack -F as root (on linux) and if so why?
When trying to jstack -F my own processes I get the following error.
Error attaching to process: sun.jvm.hotspot.debugger.DebuggerException: Can't attach to the process
jstack -F…

lalala666
- 205
- 1
- 4
- 7