리눅스 서버가 계속 다운 됩니다.

red10won의 이미지

리눅스 서버가 계속 다운 됩니다.

top에서 쉬푸트 M해서 정렬한것입니다.

- 최초 그림이 리부팅전 메모리가 다 찬상태입니다 그런데 SWAP영력을 따로 쓰지 않더군요.

- 부팅 직후 화면입니다.

- 마지막 화면은 부팅후 3시간 정도가 흐른뒤입니다....

서버는 G/W서버로 메신저 + 웹서비스 2개 + 전자결제 + DNS등이 돌고 있습니다.
어떤 또라이 개발자가 ....어떤 데몬들중,,,,, 선언 해놓고 메모리 헤지로직 안넣어서 계속 쌓이는거 같은데..

어떤건지 찾기도 좀 애매하고 방법좀 알려주시면 고맙겠습니다.
일주일에 2~3번도 메모리 풀이 차서 리부트하고 있습니다.

File attachments: 
첨부파일 크기
Image icon 33.jpg437.92 KB
Image icon 34.jpg466.37 KB
Image icon 35.jpg353.56 KB
dgkim의 이미지

top 에서 uptime이 나옵니다.

33.jpg 파일에서 75일간 잘 돌아가던 서버의 상황으로 보입니다.
34.jpg 부팅한지 2분 정도 지났고, 별 문제가 없는 상황으로 보입니다.
35.jpg 부팅한지 2시간 정도 지났고, 별 문제가 없는 상황으로 보입니다.

33.jpg 파일에서 free 메모리가 적게 나와서 판단한 것으로 생각됩니다만, buffers, cached 이므로 문제가 없지 않나 판단됩니다.

정확한 문제 상황을 알고 싶으며, 서버가 hang 상태로 넘어간다면, 하드웨어 장애로 진단할 수 있지 않겠습니까?

'어떤 또라이 개발자가' -> 밀어서 잠금 해제

incarnate의 이미지

이 방법이 맞을지는 모르겠지만....

웹 서버로 apache를 돌리시는거 같은데

가상 호스트 별로

RLimitMEM

옵션을 주셔서 사이트당 / 디렉토리당 사용가능 메모리 제한을 일단 걸어두고

mrtg 를 올리신 다음 시스템 다운 직전 상황과 서버의 log (ex : /var/log/messages 등등)파일들을 확인해 보시면 알수 있지 않을까 합니다.

먹고 죽자~

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.