ws-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Schölver, Andreas <>
Subject RE: random connection refusal
Date Tue, 23 Aug 2005 11:04:15 GMT
my thoughts...
the runtime behaviour depends on several things:
- the version of java (maybe)
- the OS of the machine where the server runs on (definitely!)
- some socket configuration settings
- more or less client ports available
- shorter or longer timeoutouts
  (ever tried 'netstat -a' to see how many connections are in WAIT state ?)
i did a simple performance test:
client creates new threads for a period of 30 minutes as fast as possible,
service method does nothing more than adding two supplied values
and returning the results.
on linux (@1,6 GHz) the test managed to start more than 
500000 threads - no exceptions occurred.
on windows (@2,5 GHz) i had to insert Thread.sleep( 100 ) to slow down the client
to avoid exceptions like ' Connection refused: connect'.
this left me with only 17614 threads started during 30 minutes of runtime.
-----Original Message-----
From: Mayer, Daniel S [] 
Sent: Friday, August 19, 2005 10:48 PM
Subject: random connection refusal

	I have a server that is dealing with many connections and many calls... It seems that after
running awhile a client gets random connection refused: connect
	So when I have threads for all of the handlers and the server is running at less than 2%
cpu, and as I understand it running its own thread pool for connections made to the socket,
why would a connection ever be refused? If am sending many requests very fast, should I be
initializing the thread pool to something different than the default for the xml rpc server?
I have certain xml rpc messages that are critical and I really want to guarantee the message
is sent / received. Currently the server handles other messages after this just fine and keeps
handling other requests quite fast, just randomly refuses a few connections here and there?
Ideas? Thoughts? Explanations? I am all wrong about everything in the entire universe? Don't
use XML RPC for critical messages? Don't wear white after labor day?
	Anyways any help would be appreciated, besides that xml RPC seems to be really great.
	Thanks in advance... 
	Dan "xml rpc for p2p is fun for me" Man

View raw message