httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 57259] New: mod_proxy_ajp + apache 2.4 on windows not using TCP connection pool
Date Tue, 25 Nov 2014 14:39:33 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=57259

            Bug ID: 57259
           Summary: mod_proxy_ajp + apache 2.4 on windows not using TCP
                    connection pool
           Product: Apache httpd-2
           Version: 2.4.10
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_proxy_ajp
          Assignee: bugs@httpd.apache.org
          Reporter: slawomir.kluz@assaabloy.com

1. Extract httpd-2.4.10-win64-VC11.zip from apachelounge or apachehaus
2. Extract tomcat (ie. apache-tomcat-7.0.57-windows-x64.zip)
3. Configure httpd:
   - enable mod_proxy
   - enable mod_proxy_ajp
   - configure connection to tomcat:
     ProxyPass / ajp://127.0.0.1:8009/
     ProxyPassReverse / ajp://127.0.0.1:8009/ 
4. Start tomcat.
5. Start httpd.
6. Open http://localhost/ by browser.
7. Observe number of TCP connections using: netstat -an when refreshing the
page.

Each new connection from httpd to tomcat creates new TCP connection (ie.
127.0.0.1:56233->127.0.0.1:8009). All of them have TIME_WAIT status and are
destroyed by OS after 4 minutes (default value of TcpTimedWaitDelay on
windows). In extreme, number of TCP connection will exceed windows limit (by
default it's ~14K). I confirmed that by sending lots of request to apache one
by one.

I have check the same scenario using apache 2.2 on windows, and apache 2.4 on
linux. It works it different way. Httpd creates few
connections to tomcat and reuse them. They have ESTABLISHED status.

Occurs on Windows 7 64bit, Windows Server 2008 R2 64bit.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message