You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Woodgett, Mel (MSFC-NNM04AA02C)[STEEPLE]" <me...@nasa.gov> on 2007/10/18 20:11:53 UTC

Limit the number of concurrent users

Is there any way to limit the number of concurrent users in Tomcat
without using any connectors?


Re: Limit the number of concurrent users

Posted by Filip Hanik - Dev Lists <de...@hanik.com>.
it is possible using Tomcat,

<Connector ... maxThread="max number of concurrent users" ..../>

Filip

Woodgett, Mel (MSFC-NNM04AA02C)[STEEPLE] wrote:
> Let me rephrase my question. What's the best way for me to set tomcat up
> in way to where I can restrict the total number of concurrent users? Is
> this possible right out of the box with tomcat or do I have to use
> Apache with tomcat?
>
> -----Original Message-----
> From: Filip Hanik - Dev Lists [mailto:devlists@hanik.com] 
> Sent: Thursday, October 18, 2007 1:35 PM
> To: Tomcat Users List
> Subject: Re: Limit the number of concurrent users
>
> tomcat is pretty useless without using connectors, how would you propose
>
> to use it, if you didn't have connectors?
>
> Filip
>
> Woodgett, Mel (MSFC-NNM04AA02C)[STEEPLE] wrote:
>   
>> Is there any way to limit the number of concurrent users in Tomcat
>> without using any connectors?
>>
>>
>>   
>>
>>     
> ------------------------------------------------------------------------
>   
>> No virus found in this incoming message.
>> Checked by AVG Free Edition. 
>> Version: 7.5.488 / Virus Database: 269.15.0/1077 - Release Date:
>>     
> 10/18/2007 9:54 AM
>   
>>   
>>     
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
>   


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


RE: Limit the number of concurrent users

Posted by "Woodgett, Mel (MSFC-NNM04AA02C)[STEEPLE]" <me...@nasa.gov>.
Thanks Chris. That's the route we were going to take, but I wanted to
see if there was a simpler solution.

Mel

-----Original Message-----
From: Christopher Schultz [mailto:chris@christopherschultz.net] 
Sent: Thursday, October 18, 2007 4:53 PM
To: Tomcat Users List
Subject: Re: Limit the number of concurrent users

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mel,

Woodgett, Mel (MSFC-NNM04AA02C)[STEEPLE] wrote:
> Let me rephrase my question. What's the best way for me to set tomcat
up
> in way to where I can restrict the total number of concurrent users?
Is
> this possible right out of the box with tomcat or do I have to use
> Apache with tomcat?

Do you mean limit the number of concurrent users, or the number of
concurrent connections?

Filip has answered the latter, but it sounds like you want to limit
/users/ -- basically, the number of active sessions.

If I'm right, then this has nothing to do with Apache httpd and your
solution will be entirely Java-based. You will have to do it yourself
because Tomcat has no such capability (and neither does Apache httpd for
that matter).

- -chris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHF9Wi9CaO5/Lv0PARArMFAKCWWv8q4PKTr6lpN3sen5f87etU9gCeOCT2
+nlUCrOUEQglP4fVRNLDajk=
=eG6c
-----END PGP SIGNATURE-----

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


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


Re: Limit the number of concurrent users

Posted by Jess Holle <je...@ptc.com>.
You can easily do this sort of thing with a session listener -- and the 
code will be relatively portable across servlet engines, etc.

--
Jess Holle

Christopher Schultz wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Mel,
>
> Woodgett, Mel (MSFC-NNM04AA02C)[STEEPLE] wrote:
>   
>> Let me rephrase my question. What's the best way for me to set tomcat up
>> in way to where I can restrict the total number of concurrent users? Is
>> this possible right out of the box with tomcat or do I have to use
>> Apache with tomcat?
>>     
>
> Do you mean limit the number of concurrent users, or the number of
> concurrent connections?
>
> Filip has answered the latter, but it sounds like you want to limit
> /users/ -- basically, the number of active sessions.
>
> If I'm right, then this has nothing to do with Apache httpd and your
> solution will be entirely Java-based. You will have to do it yourself
> because Tomcat has no such capability (and neither does Apache httpd for
> that matter).
>
> - -chris
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.7 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFHF9Wi9CaO5/Lv0PARArMFAKCWWv8q4PKTr6lpN3sen5f87etU9gCeOCT2
> +nlUCrOUEQglP4fVRNLDajk=
> =eG6c
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>   


Re: Limit the number of concurrent users

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mel,

Woodgett, Mel (MSFC-NNM04AA02C)[STEEPLE] wrote:
> Let me rephrase my question. What's the best way for me to set tomcat up
> in way to where I can restrict the total number of concurrent users? Is
> this possible right out of the box with tomcat or do I have to use
> Apache with tomcat?

Do you mean limit the number of concurrent users, or the number of
concurrent connections?

Filip has answered the latter, but it sounds like you want to limit
/users/ -- basically, the number of active sessions.

If I'm right, then this has nothing to do with Apache httpd and your
solution will be entirely Java-based. You will have to do it yourself
because Tomcat has no such capability (and neither does Apache httpd for
that matter).

- -chris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHF9Wi9CaO5/Lv0PARArMFAKCWWv8q4PKTr6lpN3sen5f87etU9gCeOCT2
+nlUCrOUEQglP4fVRNLDajk=
=eG6c
-----END PGP SIGNATURE-----

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


RE: Limit the number of concurrent users

Posted by "Woodgett, Mel (MSFC-NNM04AA02C)[STEEPLE]" <me...@nasa.gov>.
Let me rephrase my question. What's the best way for me to set tomcat up
in way to where I can restrict the total number of concurrent users? Is
this possible right out of the box with tomcat or do I have to use
Apache with tomcat?

-----Original Message-----
From: Filip Hanik - Dev Lists [mailto:devlists@hanik.com] 
Sent: Thursday, October 18, 2007 1:35 PM
To: Tomcat Users List
Subject: Re: Limit the number of concurrent users

tomcat is pretty useless without using connectors, how would you propose

to use it, if you didn't have connectors?

Filip

Woodgett, Mel (MSFC-NNM04AA02C)[STEEPLE] wrote:
> Is there any way to limit the number of concurrent users in Tomcat
> without using any connectors?
>
>
>   
>
------------------------------------------------------------------------
>
> No virus found in this incoming message.
> Checked by AVG Free Edition. 
> Version: 7.5.488 / Virus Database: 269.15.0/1077 - Release Date:
10/18/2007 9:54 AM
>   


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


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


Re: Limit the number of concurrent users

Posted by Filip Hanik - Dev Lists <de...@hanik.com>.
tomcat is pretty useless without using connectors, how would you propose 
to use it, if you didn't have connectors?

Filip

Woodgett, Mel (MSFC-NNM04AA02C)[STEEPLE] wrote:
> Is there any way to limit the number of concurrent users in Tomcat
> without using any connectors?
>
>
>   
> ------------------------------------------------------------------------
>
> No virus found in this incoming message.
> Checked by AVG Free Edition. 
> Version: 7.5.488 / Virus Database: 269.15.0/1077 - Release Date: 10/18/2007 9:54 AM
>   


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