Net::HTTP file descriptor leak
------------------------------
Key: JRUBY-5786
URL: http://jira.codehaus.org/browse/JRUBY-5786
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.6.1
Environment: Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)
JRuby 1.6.1
Ubuntu 10.04.1 LTS
Reporter: Michal Ochman
Problem
It seems that JRuby has a file descriptor leak and it is related to the
Net::HTTP methods.
To reproduce the bug, get https://github.com/ocher/jruby_file_leak_example and
then:
{quote}
bundle install
kirk -c Kirkfile
ab -n 100 -c 10 http://127.0.0.1:9090/test
# check number of pipes using:
# lsof -p KIRK_PID | grep pipe | wc -l
# redeploy kirk (kirk should display info that it's redeploying app. There is
some problem with this on OSX):
touch REVISION
# run ab once again, and check number of pipes
# after a few redeploys there should be plenty of opened pipes
ab -n 100 -c 10 http://127.0.0.1:9090/test
{quote}
There is also an example lsof dump in github repo.
Trinidad has the same problem, so it's probably some general JRuby bug. On a
big, heavaily used, long running Rails app number of pipes grow even without
redeploying - it's the most problematic part of the bug.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email