[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-users] The Raq4 refuse to close the connections.



Hi !
I really enjoy the list and I learn a lot from it, but right now I find an intresting problem and I can't
find the solution for it .
When my server (Raq4) make a connection with a client IP , it opens more than two ports to comunicate with it !
ex:
tcp        0      0 ns1.myhost.net:www      193.231.188.111.ca:2209 ESTABLISHED 
tcp        0      0 ns1.myhost.net:www      193.231.188.111.ca:2208 ESTABLISHED 
tcp        0      0 ns1.myhost.net:www      proxy.ac.tuiasi.r:41379     TIME_WAIT   
tcp        0   3185 ns1.myhost.net:www      proxy.ac.tuiasi.r:41378   FIN_WAIT1   
tcp        0      0 ns1.myhost.net:www      proxy.ac.tuiasi.r:41377      TIME_WAIT   
tcp        0      0 ns1.myhost.net:www      proxy.ac.tuiasi.r:41376       TIME_WAIT   
tcp        0   3360 ns1.myhost.net:www      proxy.ac.tuiasi.r:41219    FIN_WAIT1  

the worst part is, that sometimes the server forget to close all connections and refuse to connect with others !

ex:
netstat  -a
...............................
tcp        0      0 ns1.myhost.net:www      80.96.44.39:1987        CLOSE       
tcp        0      0 ns1.myhost.net:www      80.96.44.39:1986        CLOSE       
tcp        0      0 ns1.myhost.net:www      80.96.44.39:1985        CLOSE       
tcp        0      0 ns1.myhost.net:www      80.96.44.39:1984        CLOSE       
tcp        0      0 ns1.myhost.net:www      80.96.44.39:1983        CLOSE    
..............................................
tcp        1      0 localhost:mysql         localhost:4076          CLOSE_WAIT  
tcp        1      0 localhost:mysql         localhost:4075          CLOSE_WAIT  
tcp        1      0 localhost:mysql         localhost:4073          CLOSE_WAIT  
tcp        1      0 localhost:mysql         localhost:4072          CLOSE_WAIT  
tcp        1      0 localhost:mysql         localhost:4071          CLOSE_WAIT  
tcp        1      0 localhost:mysql         localhost:4070          CLOSE_WAIT  
..............................................
unix  1      [ ]         STREAM     CONNECTED     390016 @00002d15
unix  1      [ W ]       STREAM     CONNECTED     390682 @00002d21
unix  1      [ ]         STREAM     CONNECTED     389945 @00002d14
unix  1      [ ]         STREAM     CONNECTED     389088 @00002cfb
................................................

unix  0      [ ]         STREAM     CONNECTING    0      /var/lib/mysql/mysql.sock
unix  1      [ ]         STREAM     CONNECTING    0      /var/lib/mysql/mysql.sock
unix  1      [ ]         STREAM     CONNECTING    0      /var/lib/mysql/mysql.sock
unix  1      [ ]         STREAM     CONNECTING    0      /var/lib/mysql/mysql.sock
.............................................


when I run the top comand , I see in the list :
kswapd <defunct>
mysqld <defunct>

In this case I have only one choice : reboot the server from ssh !

I have this settings in my  httpd.conf :
Timeout 300
KeepAlive On

MaxKeepAliveRequests 100 
KeepAliveTimeout 15

MinSpareServers 5

MaxSpareServers 10

StartServers 5

MaxClients 120

MaxRequestsPerChild 500 

Please help me a.s.a.p.  !
Thanks
Paul