Summary: | SocketException: Too many open files | ||
---|---|---|---|
Product: | JMeter - Now in Github | Reporter: | Eric Siegerman <eric_97> |
Component: | HTTP | Assignee: | JMeter issues mailing list <issues> |
Status: | CLOSED FIXED | ||
Severity: | major | ||
Priority: | P3 | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Linux |
Description
Eric Siegerman
2002-08-24 06:41:45 UTC
Your workaround is the same as unselecting the "keep-alive" checkbox on the HTTP Request. It's not a terrible thing to do if it prevents you from running out of sockets. It has a small performance penalty - adding a few hundred milliseconds to the time of each request. I'd also like to know what happens if you run with keep-alive on, run till you get exceptions, then let JMeter sit for a half hour or so before trying again. Have the sockets been closed by that time? What is the timeout period for how long the sockets are kept open? Are they closing after that period like they should? The Jakarta HTTPClient has some problems in terms of use with JMeter. The biggest is that it aggressively re-uses connections, which would not be appropriate for JMeter simulating multiple users (thanks to Martin Ramshaw for studying the matter). Didn't mean to close it. HTTPSampler has been modified to call "disconnect" on all HttpURLConnection objects when it is through. The "Disconnect" function tells the object that we are through with it - it doesn't necessarily close the connection immediately. However, it should cause the JVM to close the connection in a reasonable time period. This is completely independent of choosing the "keep-alive" option. Choosing the "keep-alive" option causes the keep-alive header to be written as such, Not choosing it causes HTTPSampler to write no such header. Let me know how it works out. Marking all bugs RESOLVED before JMeter 1.8's release date as VERIFIED. Yes, it's pretty poor QA procedure, but there's bugs here lingering since JMeter 1.6, and we need to clean up a little. Bulk-closing all bugs RESOLVED before JMeter 1.8 release date. This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/929 |