On 3/10/16 11:54 AM, Christopher Schultz wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Rallavagu,

On 3/10/16 2:11 PM, Rallavagu wrote:
 From a thread dump and corresponding "top" output it is reported
that the following thread is consuming significant CPU (around
80%)

"http-bio-28080-exec-437" daemon prio=10 tid=0x00007f4acc0de000
nid=0x54ce waiting on condition [0x00007f4b038f7000]
java.lang.Thread.State: TIMED_WAITING (parking) at
sun.misc.Unsafe.park(Native Method) - parking to wait for
<0x000000071846da50> (a
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)


at
java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:226)


at
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.
awaitNanos(AbstractQueuedSynchronizer.java:2082)

  at
java.util.concurrent.LinkedBlockingQueue.poll(LinkedBlockingQueue.java
:467)


at org.apache.tomcat.util.threads.TaskQueue.poll(TaskQueue.java:86)
at
org.apache.tomcat.util.threads.TaskQueue.poll(TaskQueue.java:32)
at
java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.jav
a:1068)

  at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.j
ava:1130)

  at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.
java:615)

  at java.lang.Thread.run(Thread.java:744)

Considering it is a thread from tomcat's thread pool and it
suggests that it is "java.lang.Thread.State: TIMED_WAITING
(parking)" wonder why this shows up as consuming high CPU. Any
clues would be highly appreciated. Thanks in advance.

Are you sure you have matched-up the correct thread within the JVM
that is using all that CPU?

How are you measuring the CPU usage?

It would the ID output from "top -H" mapping to "Native ID" in thread dump.


Can you post your <Connector> and/or <Executor> configuration?

<Connector port="28080" protocol="HTTP/1.1" URIEncoding="UTF-8"
               maxThreads="500"
               connectionTimeout="20000"
               redirectPort="28443" />

Thanks


- -chris
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlbh0Q0ACgkQ9CaO5/Lv0PDDpACfbmueOC3FIVAImoIY6P0GYgla
iUUAnRimWHnwhvNR+q2KKyypxnFcoHBi
=o7Ac
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to