[Javaserver-perl] Re: Some Query on JavaServer
Brought to you by:
zzo
|
From: <ma...@zz...> - 2004-04-14 16:37:35
|
Hey Shao,
Please post future questions to the 'jav...@li...'
email list - you can become a member at:
http://lists.sourceforge.net/lists/listinfo/javaserver-perl
On Wed, Apr 14, 2004 at 12:20:17PM +0800, Shao Ming wrote:
>
> Hi Mark,
>
> first ... thanks for your great work.
>
> I have a query on the performance of the Javaserver.
> Do you know how many simultaneous connections can it accept?
I haven't tested this so am not sure - basically it depends on the hardware
the JVM is running on. There's no hard limit. For every connection
JavaServer spawns off a thread to deal with it.
I guess the theoretical maximum is 65534 since each connection needs a port
on the server machine (& the 1 one well known port) - of course in reality
you've got other services listening on other ports so you'd run out before
then. I'd guess 60000 would be about the max if your JVM/hardware can deal
with that number of Threads efficiently enough.
>
> And how can I incease the amount of child processes listening?
>
Same as above.
Now there is the standard (UNIX at least) 5 number of maximum queued
connections so if you're client are connecting simultaneously only 5 can be
queued up at a time while the JavaServer process deals with spawning a
connection. Assuming you don't have more than 5 clients trying to connect
at once this is not a problem.
Also this value is tweakable, not sure thru Java, but for sure via your OS.
Mark
|