You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Li Ma <li...@gmail.com> on 2005/11/06 08:02:01 UTC

Maximum concurrent connection to Tomcat server

We are deploying a web-based project to Tomcat 5.5. We are doing some load
testing now. But the load testing failed after concurrent connection reaches
about 80 to 100. I think it is not a big number at all.Our server(a linux
box) where Tomcat is running has 1G memory and set maxheap of Tomcat to 1G
too.

I want to ask what is yor experience using Tomcat to host a large web
project? How many concurrent user are supported in your case? Is there
anyway(guideline) to configure Tomcat to allow it support more concurrent
user?

Thanks!

--
Li Ma
lima01@gmail.com

Re: Maximum concurrent connection to Tomcat server

Posted by Don Hill <dh...@pair.com>.
Luis Torres wrote:
> Hi there,
>
> What do you have on maxThreads and what error do you get when tomcat 
> fails to respond?
>
> Just a thought... if you have 1GB of memory maybe is not a good idea 
> to let tomcat use that same number since your OS and other processes 
> need memory also. I don't know what can happen if your JVM actually 
> attempts to get 1GB, maybe you'll start using the swap fs and that's 
> not good.
>
> Regards,
>
> Luis
>
> Li Ma wrote:
>
>> We are deploying a web-based project to Tomcat 5.5. We are doing some 
>> load
>> testing now. But the load testing failed after concurrent connection 
>> reaches
>> about 80 to 100. I think it is not a big number at all.Our server(a 
>> linux
>> box) where Tomcat is running has 1G memory and set maxheap of Tomcat 
>> to 1G
>> too.
>>
>> I want to ask what is yor experience using Tomcat to host a large web
>> project? How many concurrent user are supported in your case? Is there
>> anyway(guideline) to configure Tomcat to allow it support more 
>> concurrent
>> user?
>>
>> Thanks!
>>
>> -- 
>> Li Ma
>> lima01@gmail.com
>>
>>  
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
On another note, you shouldn't be setting to 1GB if thats all the memory 
in the machine, a good rule is to set the Xms? and Xmx to the same, I 
would suggest starting @ Xms256m Xmx256m and work you way up from there 
to see what is required, if the Xmx is set too high the VM will never 
get to full GC because the vm is trying to allocate more memory but the 
OS has none available. Out of Memory!!!


Don

Don

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Maximum concurrent connection to Tomcat server

Posted by Luis Torres <A0...@itesm.mx>.
Hi there,

What do you have on maxThreads and what error do you get when tomcat 
fails to respond?

Just a thought... if you have 1GB of memory maybe is not a good idea to 
let tomcat use that same number since your OS and other processes need 
memory also. I don't know what can happen if your JVM actually attempts 
to get 1GB, maybe you'll start using the swap fs and that's not good.

Regards,

Luis

Li Ma wrote:

>We are deploying a web-based project to Tomcat 5.5. We are doing some load
>testing now. But the load testing failed after concurrent connection reaches
>about 80 to 100. I think it is not a big number at all.Our server(a linux
>box) where Tomcat is running has 1G memory and set maxheap of Tomcat to 1G
>too.
>
>I want to ask what is yor experience using Tomcat to host a large web
>project? How many concurrent user are supported in your case? Is there
>anyway(guideline) to configure Tomcat to allow it support more concurrent
>user?
>
>Thanks!
>
>--
>Li Ma
>lima01@gmail.com
>
>  
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Maximum concurrent connection to Tomcat server

Posted by Don Hill <dh...@pair.com>.
Li Ma wrote:
> We are deploying a web-based project to Tomcat 5.5. We are doing some load
> testing now. But the load testing failed after concurrent connection reaches
> about 80 to 100. I think it is not a big number at all.Our server(a linux
> box) where Tomcat is running has 1G memory and set maxheap of Tomcat to 1G
> too.
>
> I want to ask what is yor experience using Tomcat to host a large web
> project? How many concurrent user are supported in your case? Is there
> anyway(guideline) to configure Tomcat to allow it support more concurrent
> user?
>
> Thanks!
>
> --
> Li Ma
> lima01@gmail.com
>
>   
Li,

The problem you are encountering is probably a servlet threading issue, 
I have created a throttle that will control the number of threads that 
are created for the client request.

What is the error ? out of Memory or is it that the machine doesn't have 
anymore resources to create ne request, anyways by the use of a throttle 
say set to 50, this would allow only 50 request to be executed at a time 
and the other request would be put it a wait state, let me know if you 
want to look at the code.

Don

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org