You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2006/01/20 16:35:57 UTC
DO NOT REPLY [Bug 38332] New: - Documented AJP Connector configuration for pending request queue size in error
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38332>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38332
Summary: Documented AJP Connector configuration for pending
request queue size in error
Product: Tomcat 5
Version: 5.5.9
Platform: Other
URL: http://tomcat.apache.org/tomcat-5.5-doc/config/ajp.html
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Connector:AJP
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: jmcclure@atxg.com
In configuring my AJP13 connector between Tomcat 5.5.9 and Apache2 (on Red Hat
Enterprise 3 with Java 1.5) I am finding that the attribute named "backlog"
seems to have no affect, while the attribute named "acceptCount" does.
In my original load/configuration testing for deployment I had copied existing
Connector configuration in the server.xml file from other defined Connectors.
These use the "acceptCount" attribute name to manipulate the size of the
pending request queue size. However, the documentation for this same
configuation specifies the use of "backlog", which does not appear to have an
effect on performance.
I have inquired the users group about this topic, but have had no reply.
Since I am seeing a performance change using "acceptCount", I can only assume
at this time that the documentation is in error.
See http://tomcat.apache.org/tomcat-5.5-doc/config/ajp.html
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 38332] - Documented AJP Connector configuration for pending request queue size in error
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38332>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38332
yoavs@computer.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
------- Additional Comments From yoavs@computer.org 2006-12-24 18:03 -------
Are you sure you were using the AJP connector class? Looking at the current
code (which may have changed since you reported this issue), backlog is the
right parameter, acceptCount is outdated, so the documentation seems OK.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 38332] - Documented AJP Connector configuration for pending request queue size in error
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38332>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38332
------- Additional Comments From takayoshi@gmail.com 2007-01-05 00:22 -------
"acceptCount" will be replaced with "backlog" by
org.apache.catalina.connector.Connector class. Those attributes are same.
(In reply to comment #2)
> I have the same problem with Tomcat 5.5.20.
>
> It looks like the JK handler ignores both backlog and acceptCount parameters,
> and always uses the default value (50) for the socket listen queue size:
I have confirmed this behavior. It is org.apache.jk.common.ChannelSocket
class, a part of Pure Java (Non-APR) AJP Connector.
The class has empty setBacklog(int i) method and always uses 0 for
ServerSocket backlog (0 means to use OS default value).
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 38332] - Documented AJP Connector configuration for pending request queue size in error
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38332>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38332
pr@objektpark.de changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
------- Additional Comments From pr@objektpark.de 2007-01-06 06:39 -------
Done - Committed revision 493480.
Many thanks
Peter
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 38332] - Documented AJP Connector configuration for pending request queue size in error
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38332>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38332
andrew.adamov@thomson.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |andrew.adamov@thomson.com
Status|NEEDINFO |ASSIGNED
------- Additional Comments From andrew.adamov@thomson.com 2006-12-29 13:13 -------
I have the same problem with Tomcat 5.5.20.
It looks like the JK handler ignores both backlog and acceptCount parameters,
and always uses the default value (50) for the socket listen queue size:
<Connector address="10.225.96.83" port="11001"
maxThreads="800" minSpareThreads="10" maxSpareThreads="100"
connectionTimeout="30000" backlog="100" acceptCount="100"
enableLookups="false" redirectPort="8443" protocol="AJP/1.3" />
strace:
socket(PF_INET6, SOCK_STREAM, IPPROTO_IP) = 29
bind(29, {sa_family=AF_INET6, sin6_port=htons(11001), inet_pton
(AF_INET6, "::ffff:10.225.96.83", &sin6_addr), sin6_flowinfo=0,
sin6_scope_id=0}, 28) = 0
listen(29, 50) = 0
The HTTP handler uses acceptCount value, as expected:
<Connector address="10.225.96.83" port="11000" maxHttpHeaderSize="8192"
maxThreads="800" minSpareThreads="10" maxSpareThreads="100"
connectionTimeout="30000" acceptCount="100"
enableLookups="false" redirectPort="8443"
disableUploadTimeout="true" />
strace:
socket(PF_INET6, SOCK_STREAM, IPPROTO_IP) = 10
bind(10, {sa_family=AF_INET6, sin6_port=htons(11000), inet_pton
(AF_INET6, "::ffff:10.225.96.83", &sin6_addr), sin6_flowinfo=0,
sin6_scope_id=0}, 28) = 0
listen(10, 100) = 0
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 38332] - Documented AJP Connector configuration for pending request queue size in error
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38332>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38332
------- Additional Comments From takayoshi@gmail.com 2007-01-05 00:36 -------
Those documents say the default value of backlog (acceptCount) is 10, but
the actual default value is 100(see *Endpoint.java).
I think it seems documentation errors. If 100 is correct value, please
don't forget to change the default backlog value included my patch.
http://tomcat.apache.org/tomcat-5.5-doc/config/ajp.html
http://tomcat.apache.org/tomcat-5.5-doc/config/http.html
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 38332] - Documented AJP Connector configuration for pending request queue size in error
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38332>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38332
------- Additional Comments From takayoshi@gmail.com 2007-01-05 00:24 -------
Created an attachment (id=19365)
--> (http://issues.apache.org/bugzilla/attachment.cgi?id=19365&action=view)
Patch against svn tomcat/connectors/trunk
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org