아파치 2.0 에서 MySQL 접속 장애 발생시 원인
잘 돌아가던 웹서버가 갑자기 MySQL DB Error!!! 를 내 뿜는다. ㅡㅡ
1. 현상
그런데, 현상이 조금 애매하다.
우선, 같은 서버의 다른 웹사이트는 별 문제 없어 보인다.
phpmyadmin 으로 접속해 보면, 로그인이 안된다. 좀더 정확히는, 로그인이 되는 듯 한데, 바로 로그아웃 되어 버린다.
2. 원인
처음엔, 디비서버의 에러 쪽으로 접근해 보았다.
mysql 로그에는 별다른 것이 보이지 않는다.
그래서, apache 웹서버의 로그를 살펴 본다.
/var/log/httpd/error_log 를 열어 보니, 이상한 것들이 쌓여 있다.
[warn] child process xxxx still did not exit, sending a SIGTERM
[warn] child process xxxx still did not exit, sending a SIGTERM
[warn] child process xxxx still did not exit, sending a SIGTERM
[warn] child process xxxx still did not exit, sending a SIGTERM
[error] child process xxxx still did not exit, sending a SIGKILL
[error] child process xxxx still did not exit, sending a SIGKILL
[error] child process xxxx still did not exit, sending a SIGKILL
[error] child process xxxx still did not exit, sending a SIGKILL
[error] could not make child process xxxx exit, attempting to continue anyway
[error] could not make child process xxxx exit, attempting to continue anyway
[error] could not make child process xxxx exit, attempting to continue anyway
[error] could not make child process xxxx exit, attempting to continue anyway