You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Rick.Wellman" <Ri...@kiewit.com> on 2010/07/28 19:08:14 UTC
connector config for debug scenario
Is it possible to configure the http connector for only one thread ever?
I am trying to do so but having problems... it seems to not allow a
value less than the default of ten(10) threads. Any ideas? Here is the
config I am trying*:
<Connector port="12080"
maxHttpHeaderSize="8192"
maxThreads="1"
minSpareThreads="1"
maxSpareThreads="1"
acceptCount="2"
enableLookups="false" redirectPort="8443"
connectionTimeout="20000"
disableUploadTimeout="true"
emptySessionPath="true" />
* I have tried other values in the threads section, which do not work
also, but this seems the most logical to me.
RE: connector config for debug scenario
Posted by "Rick.Wellman" <Ri...@kiewit.com>.
So, simple; you rock.
I think a dummy JSP in the existing app should work, eh? (rhetorical
unless the answer is no) awesome!
-----Original Message-----
From: Caldarale, Charles R [mailto:Chuck.Caldarale@unisys.com]
Sent: Wednesday, July 28, 2010 1:02 PM
To: Tomcat Users List
Subject: RE: connector config for debug scenario
> From: Rick.Wellman [mailto:Rick.Wellman@kiewit.com]
> Subject: RE: connector config for debug scenario
>
> Hmmm, I'll consider this thread closed but if you have any ideas on
how
> I might force requests to the same thread, then I'm all ears.
Have a dummy webapp that simply does Thread.sleep() calls, make nine
requests to it, then start your real one.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: connector config for debug scenario
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Chuck,
On 7/28/2010 2:02 PM, Caldarale, Charles R wrote:
>> From: Rick.Wellman [mailto:Rick.Wellman@kiewit.com]
>> Subject: RE: connector config for debug scenario
>>
>> Hmmm, I'll consider this thread closed but if you have any ideas on how
>> I might force requests to the same thread, then I'm all ears.
>
> Have a dummy webapp that simply does Thread.sleep() calls, make nine requests to it, then start your real one.
Or patch Tomcat to avoid that minimum. That seems slightly less hacky.
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkxS/JwACgkQ9CaO5/Lv0PBzVACfT85TdDrc2VkhLpgiwZGSb5lj
CFUAoJ8BKSg2UxQmPc2Y7kV8lscRPME0
=0SF/
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: connector config for debug scenario
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Rick.Wellman [mailto:Rick.Wellman@kiewit.com]
> Subject: RE: connector config for debug scenario
>
> Hmmm, I'll consider this thread closed but if you have any ideas on how
> I might force requests to the same thread, then I'm all ears.
Have a dummy webapp that simply does Thread.sleep() calls, make nine requests to it, then start your real one.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: connector config for debug scenario
Posted by "Rick.Wellman" <Ri...@kiewit.com>.
p.s. FWIW, I just noticed this message in my logs also :(
|TOMCAT|WARN |2010-07-28 12:58:53,135|maxThreads setting (1) too low,
set to 10
-----Original Message-----
From: Rick.Wellman [mailto:Rick.Wellman@kiewit.com]
Sent: Wednesday, July 28, 2010 12:59 PM
To: Tomcat Users List
Subject: RE: connector config for debug scenario
Thanks for the correct answer but bad one ;-)
Hmmm, I'll consider this thread closed but if you have any ideas on how
I might force requests to the same thread, then I'm all ears.
-----Original Message-----
From: Caldarale, Charles R [mailto:Chuck.Caldarale@unisys.com]
Sent: Wednesday, July 28, 2010 12:47 PM
To: Tomcat Users List
Subject: RE: connector config for debug scenario
> From: Rick.Wellman [mailto:Rick.Wellman@kiewit.com]
> Subject: RE: connector config for debug scenario
>
> Apache Tomcat/5.5.27
> http-12080
> Max threads: 10 Min spare threads: 1 Max spare threads: 1
> Current thread count: 3 Current thread busy: 3
Yes, 5.5 has a minimum value for maxThreads of 10 (just looked at the
code). This minimum does not appear to exist for 6.0 and later.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: connector config for debug scenario
Posted by "Rick.Wellman" <Ri...@kiewit.com>.
Thanks for the correct answer but bad one ;-)
Hmmm, I'll consider this thread closed but if you have any ideas on how
I might force requests to the same thread, then I'm all ears.
-----Original Message-----
From: Caldarale, Charles R [mailto:Chuck.Caldarale@unisys.com]
Sent: Wednesday, July 28, 2010 12:47 PM
To: Tomcat Users List
Subject: RE: connector config for debug scenario
> From: Rick.Wellman [mailto:Rick.Wellman@kiewit.com]
> Subject: RE: connector config for debug scenario
>
> Apache Tomcat/5.5.27
> http-12080
> Max threads: 10 Min spare threads: 1 Max spare threads: 1
> Current thread count: 3 Current thread busy: 3
Yes, 5.5 has a minimum value for maxThreads of 10 (just looked at the
code). This minimum does not appear to exist for 6.0 and later.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: connector config for debug scenario
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Rick.Wellman [mailto:Rick.Wellman@kiewit.com]
> Subject: RE: connector config for debug scenario
>
> Apache Tomcat/5.5.27
> http-12080
> Max threads: 10 Min spare threads: 1 Max spare threads: 1
> Current thread count: 3 Current thread busy: 3
Yes, 5.5 has a minimum value for maxThreads of 10 (just looked at the code). This minimum does not appear to exist for 6.0 and later.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: connector config for debug scenario
Posted by "Rick.Wellman" <Ri...@kiewit.com>.
My bad; I actually had copied that from the server status page and
forgot to paste into my message:
=======================
Apache Tomcat/5.5.27
http-12080
Max threads: 10 Min spare threads: 1 Max spare threads: 1 Current thread
count: 3 Current thread busy: 3
...
=========================
-----Original Message-----
From: Caldarale, Charles R [mailto:Chuck.Caldarale@unisys.com]
Sent: Wednesday, July 28, 2010 12:11 PM
To: Tomcat Users List
Subject: RE: connector config for debug scenario
> From: Rick.Wellman [mailto:Rick.Wellman@kiewit.com]
> Subject: connector config for debug scenario
>
> Is it possible to configure the http connector for only
> one thread ever?
Care to give us a hint about which Tomcat version you're referring to?
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: connector config for debug scenario
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Rick.Wellman [mailto:Rick.Wellman@kiewit.com]
> Subject: connector config for debug scenario
>
> Is it possible to configure the http connector for only
> one thread ever?
Care to give us a hint about which Tomcat version you're referring to?
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org