Re: Unexpected low CPU usage
John Wilson <[email protected]> Mon, 21 Jan 2008 20:01:55 +0000
| Newsgroups | gmane.comp.windows.devel.java.advanced |
|---|---|
| Message-ID | <[email protected]> |
On 21 Jan 2008, at 18:28, Johan Stuyts wrote: >> 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. What happened to the throughput when you enabled keep-alive? John Wilson =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com