Discussion:
[jetty-users] qtp threads in TIMED_WAITING - Jetty version 9.4.5
upendar devu
2018-01-02 16:43:57 UTC
Permalink
We see qtp threads in TIMED_WAITING and not getting cleanedup . Jetty
version 9.4.5 . could anyone please suggest how to clean these threads ?


Name: qtp371439501-279
State: TIMED_WAITING on
java.util.concurrent.locks.AbstractQueuedSynchronizer$***@694efb3f
Total blocked: 857 Total waited: 1,401

Stack trace:
sun.misc.Unsafe.park(Native Method)
java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078)
org.eclipse.jetty.util.BlockingArrayQueue.poll(BlockingArrayQueue.java:392)
org.eclipse.jetty.util.thread.QueuedThreadPool.idleJobPoll(QueuedThreadPool.java:564)
org.eclipse.jetty.util.thread.QueuedThreadPool.access$800(QueuedThreadPool.java:49)
org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:627)
java.lang.Thread.run(Thread.java:748)
Joakim Erdfelt
2018-01-02 18:12:17 UTC
Permalink
This stack trace means that the thread is idle in the Jetty thread pool.
That is normal.

The threadpool will scale back its idle threads over time based on your
configuration in the QueuedThreadPool.
The QueuedThreadPool idle timeout setting determines when it will be
eligible to be removed.
The threads will fall off over time until it reaches QueuedThreadPool
minimum threads.
Post by upendar devu
We see qtp threads in TIMED_WAITING and not getting cleanedup . Jetty
version 9.4.5 . could anyone please suggest how to clean these threads ?
Name: qtp371439501-279
State: TIMED_WAITING on java.util.concurrent.locks.
Total blocked: 857 Total waited: 1,401
sun.misc.Unsafe.park(Native Method)
java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)
java.util.concurrent.locks.AbstractQueuedSynchronizer$
ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078)
org.eclipse.jetty.util.BlockingArrayQueue.poll(
BlockingArrayQueue.java:392)
org.eclipse.jetty.util.thread.QueuedThreadPool.idleJobPoll(
QueuedThreadPool.java:564)
org.eclipse.jetty.util.thread.QueuedThreadPool.access$800(
QueuedThreadPool.java:49)
org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(
QueuedThreadPool.java:627)
java.lang.Thread.run(Thread.java:748)
_______________________________________________
jetty-dev mailing list
To change your delivery options, retrieve your password, or unsubscribe
from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-dev
upendar devu
2018-01-02 18:39:15 UTC
Permalink
Thanks for the response , I think we are using the default Jetty
configuration and nothing is set explicitly i.e the idleTimeout is 60
seconds ; I see the threads are getting removed eventually and reaching to
minimum threads 8 supposed to be 10 if its default jetty right ?.
removal of threads taking little longer than expected.
Post by Joakim Erdfelt
This stack trace means that the thread is idle in the Jetty thread pool.
That is normal.
The threadpool will scale back its idle threads over time based on your
configuration in the QueuedThreadPool.
The QueuedThreadPool idle timeout setting determines when it will be
eligible to be removed.
The threads will fall off over time until it reaches QueuedThreadPool
minimum threads.
Post by upendar devu
We see qtp threads in TIMED_WAITING and not getting cleanedup . Jetty
version 9.4.5 . could anyone please suggest how to clean these threads ?
Name: qtp371439501-279
State: TIMED_WAITING on java.util.concurrent.locks.Abs
Total blocked: 857 Total waited: 1,401
sun.misc.Unsafe.park(Native Method)
java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)
java.util.concurrent.locks.AbstractQueuedSynchronizer$Condit
ionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078)
org.eclipse.jetty.util.BlockingArrayQueue.poll(BlockingArray
Queue.java:392)
org.eclipse.jetty.util.thread.QueuedThreadPool.idleJobPoll(Q
ueuedThreadPool.java:564)
org.eclipse.jetty.util.thread.QueuedThreadPool.access$800(Qu
euedThreadPool.java:49)
org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedT
hreadPool.java:627)
java.lang.Thread.run(Thread.java:748)
_______________________________________________
jetty-dev mailing list
To change your delivery options, retrieve your password, or unsubscribe
from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-dev
_______________________________________________
jetty-users mailing list
To change your delivery options, retrieve your password, or unsubscribe
from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users
Loading...