tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 56518] NIO async servlet limit latch leak
Date Thu, 05 Jun 2014 10:57:09 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=56518

--- Comment #7 from hanyong <observer.hany@alibaba-inc.com> ---
we are try to back-porting the fix in tomcat 8 to tomcat 7.
After some debugging, It seems the bug does not fixed in tomcat 8, but make it
more difficult to reproduce.
The root cause is that the SelectionKey is removed before the count down be
executed. 

I fixed the sample webapp to set the sleep time a little more than the
selectorTimeout, then I can reproduce the bug in tomcat 8.0.8.

I'm use ubuntu 12.04 32bit, oracle jdk 1.7.0_55, tomcat 8.0.8.

In a tomcat 8.0.8 clean install,
(1) edit "server.xml", in the Connector add maxConnections="10" to reproduce
this bug faster.
(2) remove origin ROOT in webapps, 'rm -rf conf/ROOT', deploy the sample webapp
to "webapps/ROOT.war".
(3) start tomcat.
(4) make plenty request to "/async.html", 

for (( i = 0; i < 15000; ++i )) ; do echo $i; curl localhost:8080/async.html;
done

wait a minute, then the curl client hangs, the connection limit will count up
to the max.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message