Re: Unexpected low CPU usage
Johan Stuyts <[email protected]> Mon, 21 Jan 2008 19:28:25 +0100
| Newsgroups | gmane.comp.windows.devel.java.advanced |
|---|---|
| Message-ID | <[email protected]> |
> If so take a look to see if SOAP is using keep-alive (XML-RPC > probably is). If it isn't it will close and reopen the socket for > each message. This may explain the result you are seeing. As you assumed XML-RPC would use keep-alive I also did, but it turns out the assumption was wrong. While preparing to gather more data like Endre said I ran into the infamous problem with too many ports in the 'TIME_WAIT' state on Windows while running the XML-RPC client with multiple threads. I had to write a custom transport factory so a single HTTP client would be used for all requests. This also enabled keep-alive which caused the issue I have with SOAP to also occur with XML-RPC. I know where to look for the problem now and will try to find out if it is a server-side or a client-side issue. If I find the cause and hopefully a solution, I will post it here. Thanks everybody for the great help. Johan Stuyts =================================== This list is hosted by DevelopMentor® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com