java - Apache Tomcat Request Threads -


we have application leaks bit of memory, bit being understatement.

i using jvisualvm try , find causing problem.

i see thread count grow quite bit on threads starting name: http-8080- example: http:8080-42

my first guess each of threads request hit client, each client request handled in own thread.

my problem threads have been running long periods of time (thus far 10mins).

my question this:

is assumption correct? if so, why threads run such long time? surely can't still busy serving clients request?

tomcat has number of waiting http threads, example if @ default connector setting:

<connector port="80" maxhttpheadersize="8192"               maxthreads="150" minsparethreads="25" maxsparethreads="75"               enablelookups="false" redirectport="8443" acceptcount="100"               connectiontimeout="20000" disableuploadtimeout="true" /> 

we can see there should @ least 25 threads live, waiting connections (up maxthreads limit). controlled min , maxsparethreads attributes.

what jvisual vm state thread doing waiting or locked on resource etc etc?


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -