Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server crashing #52

Open
jefferya opened this issue Feb 15, 2024 · 2 comments
Open

Server crashing #52

jefferya opened this issue Feb 15, 2024 · 2 comments

Comments

@jefferya
Copy link
Collaborator

jefferya commented Feb 15, 2024

The number of TCP connections to Apache web server with a status of "CLOSE_WAIT" will increase until the Apache web server max connection limit is reached and the site is no longer responsive.

netstat -tanp | grep ':443 ' | grep httpd | awk '{print $6}' | sort | uniq -c | sort -n
      1 LISTEN
     18 ESTABLISHED
    526 CLOSE_WAIT


netstat -tanp | grep ':443 ' | grep httpd | awk '{print $6}' | sort | uniq -c | sort -n
      1 LISTEN
     19 ESTABLISHED
    557 CLOSE_WAIT

This is normal

netstat -tanp | grep ':443 ' | grep httpd | awk '{print $6}' | sort | uniq -c | sort -n
      1 CLOSE_WAIT
      1 FIN_WAIT2
      1 LISTEN
     15 ESTABLISHED

netstat -tanp | grep ':443 ' | grep httpd | awk '{print $6}' | sort | uniq -c | sort -n
      1 ESTABLISHED
      1 FIN_WAIT2
      1 LISTEN

Temporary fix, restart httpd

sudo service httpd restart

Hypothesis, something on the server holds the server side of the connection open after the client side has sent a close. https://stackoverflow.com/questions/15912370/how-do-i-remove-a-close-wait-socket-connection. The server goes from functioning normally for several days (properly closing connections) to holding open connections. Is there a certain page or module causing the problem as the problem is not continuously visible.

@SusanBrown
Copy link

SusanBrown commented Feb 15, 2024 via email

@jefferya
Copy link
Collaborator Author

I've been working on this assumption that general load was the primary cause for the last 6 months but I've not found a causal relationship. A yet unidentified specific type of load might be related to the cause (my hypothesis, a defect/bug in the webserver version, Drupal 7, or CWRC modules).

The LEAF version doesn't seem to be impacted.

I'm adding an automated restart of the web server .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants