224 questions
1 vote
0 answers
77 views
java JVM SafePoint "ThreadDump"
I noticed, that in my java GC sometimes I find lines like that: [2025-01-02T09:22:50.244+0100][1670644.559s][info][gc,cpu ] GC(152394) User=0.05s Sys=0.00s Real=0.01s [2025-01-02T09:22:50.245+...
1 vote
0 answers
206 views
Queued Thread Pool High CPU Usage
I have a Java process consuming upwards of 400% CPU on my server (AlmaLinux) which shouldn’t be the case. On my analysis I find multiple QTPs (Queued Thread Pools) consuming the CPU: After analysing ...
3 votes
1 answer
189 views
What is the difference between "JVM thread_state" and "java.lang.Thread.State" in a thread dump?
In below thread dump, there seems to be two different thread states: JVM thread_state and java.lang.Thread.State. Which one is the actual state of the thread? JVM thread_state is "_thread_blocked&...
2 votes
1 answer
130 views
Java thread dump analysis: how can I find more information about objects on which deadlock is happening?
I have a Java Thread Dump which clearly says I have a deadlock in my application: "pool-2-thread-1": waiting to lock monitor 0x00007f17b0040120 (object 0x00000000f731a9e0, a com.MyClass), ...
3 votes
1 answer
583 views
Unusual spike in thread counts every midnight in SpringBoot application
Application Context: We are currently deploying an application based on spring-boot:3.2.0 which involves REST-based APIs exposed to clients using spring-boot-starter-web, integrating with our ...
0 votes
0 answers
169 views
How to take a thread dump of a maven build
I would like to take a thread dump of a maven run on CI server. The thread dump should be taken for example every 10 minutes to debug hanged maven runs. Is there an existing extention / configuration ...
1 vote
0 answers
34 views
High CPU Utilization on EC2 of a Spring MVC micro service with authentication disabled
One of the services is giving high CPU utilization. I analysed the thread dump and found the following stacktrace to be the culprit of the problem. But I am not able to identify how to fix it. This is ...
1 vote
0 answers
97 views
Profilers not able to take heap/thread dump
I have a Java desktop application which hangs at-times while running a scenario. I tried to take heap and thread dump for analysis. Up until the application hangs I am able to take the heap and thread ...
0 votes
0 answers
54 views
Thread id of thread dump not found in application logs
Our application is running in wildfly 9.0.1. We had taken thread dump using command jstack -l while application was running. One of thread (default task-201) from thread dump is here "default ...
5 votes
2 answers
242 views
What's the defined_classes in a Java thread dump?
Rinning jstack -e produces a dump like this (at least in Java 19): "Thread-0" #25 [23276] prio=5 os_prio=0 cpu=0.00ms elapsed=593.30s allocated=6720B defined_classes=1 tid=...
0 votes
1 answer
216 views
Threads are in blocked state when JMeter script is executed [non-gui mode]
I am running the JMeter script with 100 RPS/TPS using Throughput Shaping Timer on Linux VM using Non-GUI mode, as I am not able to reach the desired TPS/RPS with enough RAM and CPU resource available. ...
0 votes
1 answer
866 views
Taking thread dump with jstack on java fails with socket file error
Taking thread dump on Java in a linux machine is getting failed sometimes with following error with jstack:- 1455: Unable to open socket file /proc/1455/root/tmp/.java_pid1455: target process 1455 ...
1 vote
0 answers
809 views
JVM fails to exit with no non-daemon threads
One of our embedded jetty applications doesn't exit even though there are no non-daemon threads according to the thread dump: Threads class SMR info: _java_thread_list=0x00007fede8001c60, length=15, ...
1 vote
1 answer
5k views
Why is jstack unable to open socket file when trying to generate a thread dump?
I am trying to generate a thread dump of a java process being run on a Linux instance in AWS. I am using the jstack command on OpenJDK version 1.8.0. The current command I am running is sudo -u <...
1 vote
1 answer
2k views
How can I stop seeing JVM Full Thread dumps in my AWS EMR Spark job stdout logs?
I have PySpark jobs running in AWS EMR. Recently, I upgraded (AWS EMR 6.4, Spark 3.1.2) and switched to running the job in a docker container. Ever since, there are sporadic thread dumps in the stdout ...