Jstack is a thread stack analysis tool that comes with jdk. I can use this command to view or export thread stack information in a Java application.
Does OpenJDK have a tool similar to jstack (Oracle Java)?
Based on the comment from Curtis Yallop.
If you are on CentOs/RedHat like me, and have java but no jstack, you may have installed "java JRE" basically. If you also have no javac (but have java), then install openjdk-devel package and both will now show up.
Here are the tools listed that are in openjdk:
http://openjdk.java.net/tools/
jstack belongs to the Serviceability tools.
Edit: You can find jstack in the bin folder of the openjdk where all other executables can be found like java and javac.
In my case (mac OS) the path looks like the following: jdk-11.0.1.jdk/Contents/Home/bin/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With