질문&답변
클라우드/리눅스에 관한 질문과 답변을 주고 받는 곳입니다.
리눅스 분류

운영중인 웹서버가 문제가 생겼습니다.

작성자 정보

  • 정광수 작성
  • 작성일

컨텐츠 정보

본문

운영하고있는 웹서버가 있습니다. 운영웹서버가 문제 가있어 확인해보니
DB쪽에서 세션 많이 들어와서 과부하가 걸렸습니다. 그래서 임시 조치로 세션 제한 폭을 넓혀
db 다시 재가동후 (이때까지는 웹서버 쪽에 는 이상이 없었습니다.) 그런후 다음날 어제와 같은시간때에
웹서버쪽에 문제가 생겨 운영중인페이지가 열리지않았습니다 DB쪽 확인결과 DB쪽에 세션은 많이 붙어있었으나
접속이 나 쿼리쪽에는 이상이없었고 아파치로그를 보니 이런 로그가 발생되었습니다.

[Thu Jun 28 13:09:16 2007] [warn] child process 19921 still did not exit, sending a SIGTERM
[Thu Jun 28 13:09:16 2007] [warn] child process 19922 still did not exit, sending a SIGTERM
[Thu Jun 28 13:09:16 2007] [warn] child process 19923 still did not exit, sending a SIGTERM
[Thu Jun 28 13:09:16 2007] [warn] child process 19924 still did not exit, sending a SIGTERM
[Thu Jun 28 13:09:16 2007] [warn] child process 19925 still did not exit, sending a SIGTERM
[Thu Jun 28 13:13:44 2007] [error] child process 17217 still did not exit, sending a SIGKILL
[Thu Jun 28 13:13:44 2007] [error] child process 17067 still did not exit, sending a SIGKILL
[Thu Jun 28 13:13:44 2007] [error] child process 18477 still did not exit, sending a SIGKILL
[Thu Jun 28 13:13:44 2007] [error] child process 17064 still did not exit, sending a SIGKILL
[Thu Jun 28 13:13:44 2007] [error] child process 17080 still did not exit, sending a SIGKILL
[Thu Jun 28 13:13:44 2007] [error] child process 17279 still did not exit, sending a SIGKILL
[Thu Jun 28 13:13:44 2007] [error] child process 18653 still did not exit, sending a SIGKILL
[Thu Jun 28 13:13:44 2007] [error] child process 17271 still did not exit, sending a SIGKILL
[Thu Jun 28 13:13:44 2007] [error] child process 17273 still did not exit, sending a SIGKILL
[Thu Jun 28 13:13:44 2007] [error] child process 17276 still did not exit, sending a SIGKILL
[Thu Jun 28 13:13:44 2007] [error] child process 17266 still did not exit, sending a SIGKILL
[Thu Jun 28 13:13:44 2007] [error] child process 17081 still did not exit, sending a SIGKILL
[Thu Jun 28 13:13:44 2007] [error] child process 17274 still did not exit, sending a SIGKILL
[Thu Jun 28 13:13:44 2007] [error] child process 17277 still did not exit, sending a SIGKILL
[Thu Jun 28 13:13:44 2007] [error] child process 17281 still did not exit, sending a SIGKILL
[Thu Jun 28 13:13:44 2007] [error] child process 17608 still did not exit, sending a SIGKILL
[Thu Jun 28 13:13:44 2007] [error] child process 18476 still did not exit, sending a SIGKILL
[Thu Jun 28 13:13:44 2007] [error] child process 17284 still did not exit, sending a SIGKILL
[Thu Jun 28 13:13:44 2007] [error] child process 18453 still did not exit, sending a SIGKILL
[Thu Jun 28 13:13:44 2007] [error] child process 17286 still did not exit, sending a SIGKILL
[Thu Jun 28 13:13:44 2007] [error] child process 17610 still did not exit, sending a SIGKILL
[Thu Jun 28 13:13:44 2007] [error] child process 19925 still did not exit, sending a SIGKILL`
[Thu Jun 28 13:14:15 2007] [error] could not make child process 17217 exit, attempting to continue anyway
[Thu Jun 28 13:14:15 2007] [error] could not make child process 17067 exit, attempting to continue anyway
[Thu Jun 28 13:14:15 2007] [error] could not make child process 18477 exit, attempting to continue anyway
[Thu Jun 28 13:14:15 2007] [error] could not make child process 17064 exit, attempting to continue anyway
[Thu Jun 28 13:14:15 2007] [error] could not make child process 17080 exit, attempting to continue anyway
[Thu Jun 28 13:14:15 2007] [error] could not make child process 17279 exit, attempting to continue anyway
[Thu Jun 28 13:14:15 2007] [error] could not make child process 18653 exit, attempting to continue anyway

동시접속 부하로 인한 에러같은데 사내인트라넷이라 아무리많아도 동시접속자가 20명을 넘기 힘든데
갑자기 이런현상이 일어나서 일단 웹서버를 다시 리붓했지만 조만간 또이런현상이일어날꺼같아
문제가 됩니다.
rw-r--r-- 1 root root 190344124 6월 28 18:15 access_log

혹시 아파치 의 로그 용량 때메 그럴수가있는건지?

아니면 어떤문제가 있는지 비슷한현상을 겪으신분있으면 도움좀 요청합니다.
참고로

웹서버에서 #ps -ef 하면 현재운영중인 페이지의 dns 로 nobody 의 프로세스들이 많이 올라왔었습니다.

운영하는페이지 상에는 로직문제는 아닌거같습니다.



관련자료

댓글 2

배준태님의 댓글

  • 배준태
  • 작성일
로그로 봐서는 동시접속자수 초과로 인한것 같은데,

..../apache/include/httpd.h 파일에서 HARD_SERVER_LIMIT 값이 256이면

1024정도로 조정한다음 재컴파일 해보세요!

라고 네이버에서 검색하니 나오네요...검색의 생활화

유석호님의 댓글

  • 유석호
  • 작성일
2.x의 경우에는
apache2.xx/server/mpm/prefork/prefork.c 또는
apache2.xx/server/mpm/worker/worker.c가 있습니다.
해당 부분의 수치를 변경해 주세요.
HARD_SERVER_LIMIT -> 기본 256이고 1280정도 (서버 사양에 따라서)
그후 재 컴파일 하신 후에 httpd.conf 파일에서 해당 prefork 또는 worker에서
변경 했던 수치 이하로 잡아 주시면 정상 동작 합니다.

공지사항


뉴스광장


  • 현재 회원수 :  60,099 명
  • 현재 강좌수 :  36,067 개
  • 현재 접속자 :  219 명