connections in FIN_WAIT and CLOSE_WAIT state
        Posted  
        
            by 
                Raj
            
        on Server Fault
        
        See other posts from Server Fault
        
            or by Raj
        
        
        
        Published on 2012-03-22T08:19:52Z
        Indexed on 
            2012/03/22
            11:32 UTC
        
        
        Read the original article
        Hit count: 255
        
I would like to elaborate the setup so You guys can understand the question and answer more accurately. I have HAProxy as load-balancer, 4 webservers (apache 2.2.3) and one database server (MySQL 5). I am monitoring these servers by nagios. I have disabled the keepalive on apache as we have only 8GB of memory. Now what happens whenever I receive alerts for high memory and cpu utilization, I have observed that the connections from apache to database server hang in established mode (keepalive with timeout value of 7200) and at other side means connections between haproxy and apache shows status as FIN_WAIT on haproxy server and CLOSE_WAIT at apache side. I also see the huge memory swapping and apache taking the most of the memory. I did strace on apache process and did not find any information. strace gets attached to apache process but did not produce any output. The processlist on Mysql server show s those processes in sleep mode. The application on webserver is Magento a php application. if you need further information please let me know. Thanks.
© Server Fault or respective owner