You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2007/03/06 11:12:41 UTC

DO NOT REPLY [Bug 41771] New: - Erro with mod_proxy_ajp or mod_prox_balancer

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=41771>.
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=41771

           Summary: Erro with mod_proxy_ajp or mod_prox_balancer
           Product: Apache httpd-2
           Version: 2.2.4
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_proxy
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: sebastien.bilbeau@univ-rennes1.fr


I have some errors when I use mod_proxy_ajp or mod_prox_balancer under solicited
server.

I have this problem under apache 2.2.3 too.

-- 
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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 41771] - Erro with mod_proxy_ajp or mod_prox_balancer

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=41771>.
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=41771





------- Additional Comments From rpluem@apache.org  2007-03-07 12:20 -------
(In reply to comment #7)
> Thanks for your answer, Ruediger. As you ask, there is one balancer member
> running on the same box as the webserver.

So I currently assume that the sockets in CLOSE_WAIT state belong to the
balancer member on your box. If httpd is not able to sent the full contents to
the client it closes the connection to the backend to

1. Avoid any hickups with stuck content when reusing this connection.
2. To give the backend a chance to discover that the content requested will not
   be consumed and thus possible expensive operations to generate the remaining
   part of the content can be stopped.

So I assume that the application in your balancer has not closed its part of the
socket after httpd has closed its side of the socket. Can you please cross check?

-- 
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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 41771] - Erro with mod_proxy_ajp or mod_prox_balancer

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=41771>.
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=41771





------- Additional Comments From rpluem@apache.org  2007-03-12 14:53 -------
netstat -apn executed as root should be your friend. It shows which process owns
the respective socket.

-- 
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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 41771] - Erro with mod_proxy_ajp or mod_prox_balancer

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=41771>.
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=41771


murali_np2000@yahoo.co.in changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|mod_proxy                   |Appender
            Product|Apache httpd-2              |Log4j
            Version|2.2.4                       |1.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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 41771] - Erro with mod_proxy_ajp or mod_prox_balancer

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=41771>.
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=41771





------- Additional Comments From sebastien.bilbeau@univ-rennes1.fr  2007-03-06 02:23 -------
I think the socket does not get closed properly.

-- 
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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 41771] - Erro with mod_proxy_ajp or mod_prox_balancer

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=41771>.
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=41771





------- Additional Comments From sebastien.bilbeau@univ-rennes1.fr  2007-03-13 02:29 -------
Created an attachment (id=19701)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=19701&action=view)
Result of netstat command

Result of this command :
netstat -apn > /tmp/toto && netstat -tn | egrep "^tcp.*:9514" | tr -s " " | cut
-f6 -d " " | sort | uniq -c >> /tmp/toto

-- 
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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 41771] - Erro with mod_proxy_ajp or mod_prox_balancer

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=41771>.
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=41771





------- Additional Comments From rpluem@apache.org  2007-03-13 13:52 -------
Ok, as the sockets being in CLOSE_WAIT state belong to httpd processes, my
theory seems to be wrong :-).
Another approach: I do not know the application server to which you connect via
ajp. Possibly it has a timeout for these ajp connections and closes them after a
certain idle period or it closes them for any other reason. The socket will
remain in CLOSE_WAIT status on httpd side until the connection is chosen again
from the connection pool by the specific worker. httpd will notice that the
connection has been closed by the other end, will close its end of the
connection and create a new socket for a new connection.

-- 
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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 41771] - Erro with mod_proxy_ajp or mod_prox_balancer

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=41771>.
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=41771


carnold@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|Appender                    |mod_proxy_balancer
            Product|Log4j                       |Apache httpd-2
            Version|1.0                         |2.0-HEAD




------- Additional Comments From carnold@apache.org  2007-08-21 15:30 -------
Somehow got assigned as a log4j bug.

-- 
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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 41771] - Erro with mod_proxy_ajp or mod_prox_balancer

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=41771>.
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=41771





------- Additional Comments From sebastien.bilbeau@univ-rennes1.fr  2007-03-12 02:10 -------
How do you sugest me to cross check ?

-- 
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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 41771] - Erro with mod_proxy_ajp or mod_prox_balancer

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=41771>.
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=41771





------- Additional Comments From sebastien.bilbeau@univ-rennes1.fr  2007-03-06 02:16 -------
Created an attachment (id=19671)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=19671&action=view)
Error_log extract


-- 
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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 41771] - Erro with mod_proxy_ajp or mod_prox_balancer

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=41771>.
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=41771





------- Additional Comments From sebastien.bilbeau@univ-rennes1.fr  2007-03-06 02:30 -------
When I have errors, if I launch netstat command, the result is :

[root@**** httpd_80]$ netstat -tn | egrep "^tcp.*:9514" | tr -s " " | cut -f6 -d
" " | sort | uniq -c
     30 CLOSE_WAIT
    177 ESTABLISHED
      1 FIN_WAIT2
[root@**** httpd_80]$ netstat -tn | egrep "^tcp.*:9514" | tr -s " " | cut -f6 -d
" " | sort | uniq -c
     30 CLOSE_WAIT
    174 ESTABLISHED
      1 FIN_WAIT2
[root@**** httpd_80]$ netstat -tn | egrep "^tcp.*:9514" | tr -s " " | cut -f6 -d
" " | sort | uniq -c
     30 CLOSE_WAIT
    176 ESTABLISHED
      1 TIME_WAIT

-- 
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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 41771] - Erro with mod_proxy_ajp or mod_prox_balancer

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=41771>.
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=41771


rpluem@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO




------- Additional Comments From rpluem@apache.org  2007-03-06 13:07 -------
Thanks for your detailed analysis. Although this is not obvious from the error
messages they simply state that the client has closed the connection before all
data from the backend has been transfered to the client (usually because someone
pressed the stop button in the browser). So no need to worry about this.
Regarding the connections in CLOSE_WAIT state: Is any of the balancer members
running on the same box as your webserver?

-- 
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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 41771] - Erro with mod_proxy_ajp or mod_prox_balancer

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=41771>.
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=41771





------- Additional Comments From sebastien.bilbeau@univ-rennes1.fr  2007-03-06 02:15 -------
Created an attachment (id=19670)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=19670&action=view)
extra/httpd-mpm.conf configuration


-- 
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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 41771] - Erro with mod_proxy_ajp or mod_prox_balancer

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=41771>.
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=41771





------- Additional Comments From sebastien.bilbeau@univ-rennes1.fr  2007-03-07 00:28 -------
Thanks for your answer, Ruediger. As you ask, there is one balancer member
running on the same box as the webserver.

-- 
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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 41771] - Erro with mod_proxy_ajp or mod_prox_balancer

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=41771>.
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=41771





------- Additional Comments From sebastien.bilbeau@univ-rennes1.fr  2007-03-06 02:13 -------
My virtualhost configuration :
------------------------------
<VirtualHost ***.***.116:443>
   ServerName ***website***
   VirtualDocumentRoot /data/webapps/***website***
   # Options repartition de charge logiciel
   ProxyPass /balancer-manager !
   ProxyPass / balancer://mycluster/ stickysession=JSESSIONID
   <Proxy balancer://mycluster>
     BalancerMember ajp://server.*******:9514 min=0 max=200 smax=100 ttl=10
route=**** loadfactor=25
     BalancerMember ajp://server.*******:9514 min=0 max=200 smax=100 ttl=10
route=**** loadfactor=25
     BalancerMember ajp://server.*******:9514 min=0 max=200 smax=100 ttl=10
route=**** loadfactor=50
   </Proxy>
   # Options pour le https
   SSLEngine on
   SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP
   SSLCertificateFile           /etc/certificats/***website***.crt
   SSLCertificateKeyFile        /etc/certificats/***website***.key
   SSLCertificateChainFile      /etc/certificats/chainage.txt
   SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown downgrade-1.0
force-response-1.0
   CustomLog logs/ssl_request_log "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
   # Ajout car sinon ne loggue pas ce virtualhost
   CustomLog logs/access_log comonvhost
   ErrorLog  logs/error_log
</VirtualHost>

-- 
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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org