Questions tagged [blocked-threads]
38 questions
3
votes
0 answers
"waiting on" vs "waiting to lock" vs "locked" in java thread dumps
Looking through a thread dump I see several BLOCKED threads but some have "waiting to lock " and some have "waiting on " while there is only one RUNNABLE thread that has presumably acquired the lock. The question I have is why are some "waiting to…

suh
- 194
- 1
- 10
3
votes
1 answer
Is this a circular deadlock or circular wait?
I am instrumenting a Restful Java microservice with JProfiler while I send multiple requests with JMeter. I see that there are a lot of blocked threads. The microservice use Spring, SpringBoot.
When multiple requests are sent, somehow the problems…

Adrian
- 395
- 3
- 13
3
votes
3 answers
Why does Threads in BLOCKED state do not get interrupted?
I am working on multithreading in java.
Want to understand if a Thread is in BLOCKED state why it cant be interrupted? And why the thread can be interrupted only if it is in WAIT state? Basically, why do we need two Thread states one which can be…

karts
- 151
- 3
- 12
2
votes
4 answers
Detecting Blocked Threads
I have a theory regarding trouble shooting a Asynchronous Application (I'm using the CCR) and I wonder if someone can confirm my logic.
If a CCR based multi-threaded application using the default number of threads (i.e. one per core) is slower than…

Andrew Harry
- 13,773
- 18
- 67
- 102
2
votes
1 answer
Adding controls to WPF windows without blocking GUI thread
I am trying to find a way to add multiple (100+ with high amount of data) controls to a WPF GUI without blocking the GUI thread by itself. That's how i create the controls currently:
I create the controls asynchronous in a parallel thread and i am…

Marc
- 103
- 17
2
votes
2 answers
Using TcpListener.AcceptSocket(); in a separate thread causes the thread to block?
I have tried to work around this as well as debug but I'm at a loose end here :( is there any alternative to using this to check for a client connection? This code works fine in a console application so i am guessing the thread is being blocked,…

Sam
- 350
- 2
- 9
2
votes
1 answer
Thread blocked on println statement in Java
We have running multiple instances of application ( one per tomcat server ) on single physical host.
Application do decent logging.
Recently we have observed that some applications getting slower or hang and need to be restarted.
In thread dump, it…

Pramod
- 21
- 1
- 4
2
votes
1 answer
Portal running with Glassfish 2.1.1, Liferay 5.2 and SSL get too many blocked threads
I have a portal which is running over SSL on Glassfish and uses Liferay. Last time we sent a email that brings approximately 200 people at same time to access released information our Glassfish "stalled".
From the server we could see that system…

Marcio Jasinski
- 1,439
- 16
- 22
1
vote
0 answers
Higher memory usage, blocked thread when using vertx circuit breaker
Context
I am getting high memory usage with the vertx circuit breaker. I am just using httpbin.org to get all success responses. For individual requests, it works fine. While running a load test the JVM old gen utilization is spiking…

Jyoti Patel
- 21
- 4
1
vote
0 answers
JMeter Threads Getting blocked after sometime in test
Using JMeter 5.4.1 and JDK 11 in Non-GUI mode, running at 40 Thread at 5 requests/sec.
All Listeners Off
Disabled all assertions, relying on application logs
Groovy used as scripting language in JSR223, using to emulate Pacing between requests
Heap…

user127911
- 35
- 5
1
vote
1 answer
Multiple Blocked threads on UnInvertedField.getUnInvertedField() & SegmentReader$CoreReaders.getTermsReader
We are upgrading from Solr 1.3 to Solr 1.4.1.
While using Solr 1.3 , we were seeing multiple blocking active threads on "org.apache.lucene.store.FSDirectory$FSIndexInput.readInternal() ".
To utilize the benefits of NIO, on upgrading to Solr 1.4.1,…

user609880
- 11
- 2
1
vote
1 answer
How to Restore Thread from Blocked to Runnable State?
Context:
I am writing a small Java program to troll my friends. This program, when run, spams the screen with many small windows in order to block the view and lag the machine. In an attempt to increase the rate at which windows appear, I've tried…

Papermage11
- 39
- 4
1
vote
0 answers
Blocked threads on JDBC4Connection and Log4J
I am facing high CPU utilization issue with tomcat7. A web app developed using JDK7 is deployed on the tomcat server. This web app contacts a MySQL server that is running on a different instance, for CRUD functions.
CPU usage of tomcat becomes…

user3103886
- 11
- 2
1
vote
2 answers
Does a thread that is blocked cause the process to become blocked? Why and How?
Does a thread that is blocked cause the process to become blocked? Why and How? Thanks to all experts for answering.

Anonymous
- 489
- 1
- 7
- 18
1
vote
0 answers
Most of the Jboss threads in state = BLOCKED
Most of our jboss threads lie in the BLOCKED state and the thread count of jboss never comes down.
Want to understand how to bring the thread count down and why are these many threads in BLOCKED state.
We have 380 of 450 threads in BLOCKED…

Rahul Agarwal
- 11
- 3