DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41100>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41100

           Summary: Too many open files exception when usign HTTP Put with
                    file input
           Product: JMeter
           Version: 2.2.1
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: Main
        AssignedTo: jmeter-dev@jakarta.apache.org
        ReportedBy: [EMAIL PROTECTED]


HTTPSampler2.setPutHeaders() uses a InputStreamRequestEntity that doesn't
automatically closes the FileInputStream. Becauses it open a new file descriptor
each time it quickly runs out of fds throwing a IOException:Too many open files.
One possible solution is to explore http-client-3.1 and its FileRequestEntity.
Other (quicker) solutions is to use read all the file contents in  a byte array
then close the file and use ByteArrayRequestEntity. I'm providing a patch that
does exactly that.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to