You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Saurabh Makol <sa...@gmail.com> on 2013/11/25 20:23:21 UTC

maxThread not set in Tomcat 7

Hello Tomcat experts,


I am running Tomcat 7 on Window Server 2008 and below in my connector
setting present in server.xml

<Connector address="127.0.0.1" port="80" protocol="HTTP/1.1"
connectionTimeout="60000" redirectPort="443" maxthreads="250" >

The server gets started without any issue however when I go to the manager
site

http://127.0.0.1/manager/status

It still show the max thread as 200

"http-bio-127.0.0.1-80"

Max threads: 200 Current thread count: 1 Current thread busy: 1
Max processing time: 0 ms Processing time: 0.0 s Request count: 0 Error
count: 0 Bytes received: 0.00 MB Bytes sent: 0.00 MB

After looking at this URL
http://tomcat.apache.org/tomcat-5.5-doc/config/http.html

It says that if nothing is set for maxThread in connector tag then it sets
it as 200 however in my case it is set as 250 but the manager console is
still showing it as 200

Am I missing something or not setting the property properly? Any
information would be very helpful?

Thanks,
Saurabh

Re: maxThread not set in Tomcat 7

Posted by Saurabh Makol <sa...@gmail.com>.
Understood, thanks.


On Mon, Nov 25, 2013 at 3:24 PM, Caldarale, Charles R <
Chuck.Caldarale@unisys.com> wrote:

> > From: Saurabh Makol [mailto:saurabh.makol@gmail.com]
> > Subject: Re: maxThread not set in Tomcat 7
>
> > Even setting it as lower case doesn't make any difference:
>
> You already had it in lower case.  Read the doc (and the responses) more
> carefully; the attribute name is _not_ maxthreads.
>
>
> http://tomcat.apache.org/tomcat-7.0-doc/config/http.html#Standard_Implementation
>
>  - 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: maxThread not set in Tomcat 7

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Saurabh Makol [mailto:saurabh.makol@gmail.com] 
> Subject: Re: maxThread not set in Tomcat 7

> Even setting it as lower case doesn't make any difference:

You already had it in lower case.  Read the doc (and the responses) more carefully; the attribute name is _not_ maxthreads.

http://tomcat.apache.org/tomcat-7.0-doc/config/http.html#Standard_Implementation

 - 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: maxThread not set in Tomcat 7

Posted by Saurabh Makol <sa...@gmail.com>.
Thanks all for your reply,

Even setting it as lower case doesn't make any difference:

<Connector address="127.0.0.1" port="80" protocol="HTTP/1.1"
connectionTimeout="60000" redirectPort="443" maxthreads="250" />

It still shows me as default value which is 200.

However as per your suggestion I did notice this in the server logs

Nov 25, 2013 2:10:48 PM org.apache.catalina.startup.SetAllPropertiesRule
begin
WARNING: [SetAllPropertiesRule]{Server/Service/Connector} Setting property
'maxthreads' to '250' did not find a matching property.

Do you guys anticipate that my server.xml is not well formed?



On Mon, Nov 25, 2013 at 2:48 PM, Christopher Schultz <
chris@christopherschultz.net> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> Chuck,
>
> On 11/25/13, 2:39 PM, Caldarale, Charles R wrote:
> >> From: Christopher Schultz [mailto:chris@christopherschultz.net]
> >> Subject: Re: maxThread not set in Tomcat 7
> >
> >> I haven't tried it, but perhaps Tomcat is case-sensitive when it
> >> comes to XML attribute names.
> >
> > No perhaps about it - it's always case sensitive.
>
> I was too lazy to check, and didn't want to give bad advice with too
> much conviction ;)
>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.15 (Darwin)
> Comment: GPGTools - http://gpgtools.org
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iQIbBAEBCAAGBQJSk6lwAAoJEBzwKT+lPKRYhCQP+OX7Elhp3s93S5OvPY8Njqsq
> jiXdIu8PvwuRaUSN/5RrmZgg7Pm6REXSx1w8+VyG42foLLY9GCLbBKKSQxJaf+rA
> LAnxA19+LVIek4qwVwTDYLWXBAeawQMgyw+22pCflgOLobkwviz/4qGy3f90hJ6n
> ZaiR4ycca6hesLja4JTw5Lc7jIsfAoK5X2qKZNwqxCEOxMz7Uh8e7vTugFRxRKDU
> fhKN81Pfd13k6711d/E2T4iSeLc+QcnFrzvKNrNJSOHgYVLEQv8AwIXhK2tpHpLn
> 1ICN7ghh++3b/fRh2uqnyo9hhNVFfYT1+uhNgSyNTXo+rciR2l5vWRV0+Ltnj5un
> naqRAZGCZc7+CL49ynf5f5c/Dpe142Cks3pceqFBjYR9SDHOPUMvF/yd8GO26DiQ
> 2nza89fPaX5pBz+CWYiaM2JvLm8AgxeySNByYegnwhfmL6o+SMGf12IJrTBe68Km
> gQ9hu5EP92O14YJPZCAAj5fXBoFZvhoW04EaH9Sp9ySP+fKhE5lJwBPU3aRQVyXH
> 8LZrBSgPMyis1f313JF3Qd5GeR8p35ZaGeXmX+r8UJ1XsL+JO2dNyS3Rk/xqQZvb
> 2kVahW7HmYTkTf5Rco2sg/4AxE/hxMaCX3DvWlVZ0YH+8nPGQppn98wZdMxhaSMT
> 4lktai5rn4eRBQi6CBI=
> =5SHj
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: maxThread not set in Tomcat 7

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

Chuck,

On 11/25/13, 2:39 PM, Caldarale, Charles R wrote:
>> From: Christopher Schultz [mailto:chris@christopherschultz.net] 
>> Subject: Re: maxThread not set in Tomcat 7
> 
>> I haven't tried it, but perhaps Tomcat is case-sensitive when it
>> comes to XML attribute names.
> 
> No perhaps about it - it's always case sensitive.

I was too lazy to check, and didn't want to give bad advice with too
much conviction ;)

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.15 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIbBAEBCAAGBQJSk6lwAAoJEBzwKT+lPKRYhCQP+OX7Elhp3s93S5OvPY8Njqsq
jiXdIu8PvwuRaUSN/5RrmZgg7Pm6REXSx1w8+VyG42foLLY9GCLbBKKSQxJaf+rA
LAnxA19+LVIek4qwVwTDYLWXBAeawQMgyw+22pCflgOLobkwviz/4qGy3f90hJ6n
ZaiR4ycca6hesLja4JTw5Lc7jIsfAoK5X2qKZNwqxCEOxMz7Uh8e7vTugFRxRKDU
fhKN81Pfd13k6711d/E2T4iSeLc+QcnFrzvKNrNJSOHgYVLEQv8AwIXhK2tpHpLn
1ICN7ghh++3b/fRh2uqnyo9hhNVFfYT1+uhNgSyNTXo+rciR2l5vWRV0+Ltnj5un
naqRAZGCZc7+CL49ynf5f5c/Dpe142Cks3pceqFBjYR9SDHOPUMvF/yd8GO26DiQ
2nza89fPaX5pBz+CWYiaM2JvLm8AgxeySNByYegnwhfmL6o+SMGf12IJrTBe68Km
gQ9hu5EP92O14YJPZCAAj5fXBoFZvhoW04EaH9Sp9ySP+fKhE5lJwBPU3aRQVyXH
8LZrBSgPMyis1f313JF3Qd5GeR8p35ZaGeXmX+r8UJ1XsL+JO2dNyS3Rk/xqQZvb
2kVahW7HmYTkTf5Rco2sg/4AxE/hxMaCX3DvWlVZ0YH+8nPGQppn98wZdMxhaSMT
4lktai5rn4eRBQi6CBI=
=5SHj
-----END PGP SIGNATURE-----

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


RE: maxThread not set in Tomcat 7

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Christopher Schultz [mailto:chris@christopherschultz.net] 
> Subject: Re: maxThread not set in Tomcat 7

> I haven't tried it, but perhaps Tomcat is case-sensitive when it comes
> to XML attribute names.

No perhaps about it - it's always case sensitive.

 - 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: maxThread not set in Tomcat 7

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

Saurabh,

On 11/25/13, 2:23 PM, Saurabh Makol wrote:
> <Connector address="127.0.0.1" port="80" protocol="HTTP/1.1" 
> connectionTimeout="60000" redirectPort="443" maxthreads="250" >
> 
> The server gets started without any issue however when I go to the
> manager site
> 
> http://127.0.0.1/manager/status
> 
> It still show the max thread as 200

I haven't tried it, but perhaps Tomcat is case-sensitive when it comes
to XML attribute names. "maxthreads" != "maxThreads". Might make a
difference.

Does your log file say something about how "maxthreads" is not a
recognized configuration parameter?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.15 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJSk6YrAAoJEBzwKT+lPKRYOVcP/RBnmRjxmRACSKjcFSDEtOQQ
7rgRUXWSOXekAVUc3sB49MKeiKt45Ew6X7bEkf6rtrz+u6IPkPYBUmGdWVB4LF3h
1+rKcPyOtaATXCs6ffhuk8w6b1eTyg+M4BuLtt8lEVsZtujDkvB9Axm4jByRG3fc
/7n1ZmIjaHq1V+tNoSbQtvB5B7RbN9YsDzKeFf7baJgwqxM0VlsZP7iDIh+sFJhj
/rqeNKsRRVKZzwrCf2jadOpdfaNbzPDa/Xi0XvPmvFxorrG/vr3T7Nwi+8RoZVGi
n3p+5KbIhPfQJLfRobneDFNSJIGHONHJl97X7cg0h9jPBW1RMpWMimc60WADOJjh
TsN2IpnSNyp0SWZCZvBXzjdeO+Lq+pCF8L5ePYp1pemd/iKSm75f6evbUoYBDcpw
NfUI1SrZKdZc68CITIfi2ToCFlCvmwaoZTiFW+kcfaPa6XL5RV9uXwSXnwT4yosI
BgAB5CrX1IL9Iaj60aYzWdsUNw3pj5IiRW2C6Elk/eMeFmb2y9t3xhPE+YxclZ3P
3wwcfvrKydgQkpgEz0ThRPtPXM9zmduJjNd0JTGGBMKckmhceDtj+syyBGpFdWdG
/pu4zMMrX0mJ5F7Y8JkrDvWOHFv61kC20INJ0qQVBkPDmcHS6zuxp8HQe38PApTQ
AUTg6xk2jjxm5N+lpDTR
=1LaW
-----END PGP SIGNATURE-----

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


Re: maxThread not set in Tomcat 7

Posted by Mark Thomas <ma...@apache.org>.
On 25/11/2013 19:23, Saurabh Makol wrote:

> Am I missing something or not setting the property properly?

Yes and yes. Attribute names are case sensitive.

Mark


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