Tomcat 5.5.27 running on JVM 1.5.0_13 (64bit) on Linux 2.6 with 6GB
heap -- single JVM per server

occasionally we notice high cpu usage by the java process and using
the SNMP agent we can find the offending thread by sorting on
jvmThreadInstCpuTimeNs

in the most recent example, I found:

TP-Processor30 

with a CpuTimeNs value of 23776340000000 which was 10x more than the
next thread.

doing a thread dump, I see:

"TP-Processor30" daemon prio=1 tid=0x00002aac610b5060 nid=0x27e7 runnable 
[0x000000004a310000..0x000000004a324c10]
        at 
com.sun.faces.context.MyHttpServletRequestWrapper.getAttribute(ExternalContextImpl.java:1006)
        at 
com.sun.faces.context.MyHttpServletRequestWrapper.getAttribute(ExternalContextImpl.java:1011)
        at 
javax.servlet.ServletRequestWrapper.getAttribute(ServletRequestWrapper.java:82)

the rest of the application seems fine -- is there any way to time out
or kill just that thread? what about proactively limiting CPU usage by
thread?

Thanks,
Adi


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

Reply via email to