You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Tomcat Forum <to...@hotmail.com> on 2002/10/01 16:57:47 UTC
Concurrency Problems
Hi Everybody,
Iam having some problems with simutaneous users on the Tomcat 4.0
server. I have made a java client for testing Tomcat with multiple users.
This client makes multiple threads with each requesting login and then some
page from the tomcat server. But if I send more than 25 threads I start
getting exceptions from the server like java.net.ConnectException:
Connection refused: connect.
Can somebody please tell me what is the maximum number of simultaneous
users Tomcat can support and is there any way to configure this?
I'll appericiate ur help.
Mandeep
_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Concurrency Problems
Posted by David Mossakowski <dm...@Instinet.Com>.
I believe that this is controlled by the maxProcessors in the Connector
element in your server.xml file
d.
Tomcat Forum wrote:
>
> Hi Everybody,
> Iam having some problems with simutaneous users on the Tomcat 4.0
> server. I have made a java client for testing Tomcat with multiple
> users. This client makes multiple threads with each requesting login and
> then some page from the tomcat server. But if I send more than 25
> threads I start getting exceptions from the server like
> java.net.ConnectException: Connection refused: connect.
> Can somebody please tell me what is the maximum number of
> simultaneous users Tomcat can support and is there any way to configure
> this?
> I'll appericiate ur help.
> Mandeep
>
>
> _________________________________________________________________
> Chat with friends online, try MSN Messenger: http://messenger.msn.com
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
>
>
--
David Mossakowski dmoss@instinet.com
Instinet Corporation 212.310.7275
*******************************************************************************
<<Disclaimer>>
This message is intended only for the use of the Addressee and
may contain information that is PRIVILEGED and/or
CONFIDENTIAL or both.
This email is intended only for the personal and confidential use
of the recipient(s) named above.
If the reader of this email is not an intended recipient, you have
received this email in error and any review, dissemination,
distribution or copying is strictly prohibited.
If you have received this email in error, please notify the sender
immediately by return mail and permanently deleting the copy
you received.
Thank you.
*******************************************************************************
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Concurrency Problems
Posted by Nick Sharples <ni...@runtime-collective.com>.
Tomcat Forum writes:
> Iam having some problems with simutaneous users on the Tomcat 4.0
> server. I have made a java client for testing Tomcat with multiple users.
> This client makes multiple threads with each requesting login and then some
> page from the tomcat server. But if I send more than 25 threads I start
> getting exceptions from the server like java.net.ConnectException:
> Connection refused: connect.
> Can somebody please tell me what is the maximum number of simultaneous
> users Tomcat can support and is there any way to configure this?
> I'll appericiate ur help.
> Mandeep
>From memory it's 20 but I could be wrong, you set the maxProcessor
threads of the connector configuration in server.xml.
..Nick
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Concurrency Problems
Posted by peter lin <pe...@labs.gte.com>.
it all depends on the hardware, webapp and a whole bunch of other
things.
the best way to find out is to stress test it with varying level of
threads, preferably increased in regular increments.
once you get a baseline, you can then try increasing the max processors
in server.xml and repeat the same set of tests.
Do this as many times as needed to figure out what settings work best
for you. Depending on your webapplication and the response time, you
may also want to try increasing the acceptCount.
Performance tuning takes time and consistent methodology. It's also
beneficial to set a thresh-hold for what you consider to be reasonable
response time under heavy loads vs light loads. hope that helps.
peter
Tomcat Forum wrote:
>
> Hi Everybody,
> Iam having some problems with simutaneous users on the Tomcat 4.0
> server. I have made a java client for testing Tomcat with multiple users.
> This client makes multiple threads with each requesting login and then some
> page from the tomcat server. But if I send more than 25 threads I start
> getting exceptions from the server like java.net.ConnectException:
> Connection refused: connect.
> Can somebody please tell me what is the maximum number of simultaneous
> users Tomcat can support and is there any way to configure this?
> I'll appericiate ur help.
> Mandeep
>
> _________________________________________________________________
> Chat with friends online, try MSN Messenger: http://messenger.msn.com
>
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>