You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by bu...@apache.org on 2003/04/22 08:03:25 UTC
DO NOT REPLY [Bug 11296] -
Connections not closed in http client code.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11296>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11296
Connections not closed in http client code.
------- Additional Comments From rg@onepercentsoftware.com 2003-04-22 06:03 -------
This presents a problem for our performance testing as well. However, we run
into the problem at ~1000 calls (it appears to vary depending on how fast the
OS closes the first-opened sockets). Here's the code I'm using to repro this:
public void testClientPerformance() throws Throwable {
for (int i = 0; i < 2000; i++) {
Service service = new Service();
Call call = (Call) service.createCall();
call.setTargetEndpointAddress
("http://localhost:8080/axis/services/Version");
call.setOperation("getVersion");
String res = (String) call.invoke(new Object[] {});
System.out.println("Completed call " + i);
}
}
Running netstat -a while running this code indicates that the number of
connections continues to increase until the OS decides it's done.
I'm using Axis 1.1 RC1.