Re: Unexpected low CPU usage
Endre Stølsvik <[email protected]> Fri, 18 Jan 2008 17:22:17 +0100
| Newsgroups | gmane.comp.windows.devel.java.advanced |
|---|---|
| Message-ID | <[email protected]> |
Johan Stuyts wrote: >> Odd. Usually people think of excessive CPU utilization as the problem... >> >> Does the client submit a request and wait for the response before >> submitting the next request? If so, the transmission and client-side >> decoding time produce idle periods on the server. > > That's what I thought but with the RMI and XML-RPC protocols I see no such > idle time. The client and the server are running on the same machine and > that is why I expect the CPU to be utilized fully all the time. > > If I run the client that uses the RMI protocol on another host, the CPU > usage of the server does not rise above about 50%. Are you simply loading it enough? Your stuff might just be better than the RMI thing! Smile and be happy! When client and server are on distinct boxes, you must make sure there aren't any hiccups on the line - see to that it is full duplex 1 Gbps links, so that both throughput is super, and latency is nil. See how much you manage to pull through the thing (scale up the load). You should measure lag - are the responses coming steadily very fast? When the response times starts to climb (exponentially), you've hit some roof - if the CPU at that time still isn't 100%, you've got some other bottleneck - maybe some very bad synching or something..? Kind regards, Endre. =================================== This list is hosted by DevelopMentor® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com