RHEL4 에서 memory leak 현상이...

amakusa의 이미지

안녕하세요. RHEL4 WS 를 테스트용 서버로 사용하고 있던 도중에

아래와 같은 메세지를 반복적으로 출력하면서 때때로 리부팅이 되어

버리곤 합니다.

구글로 메세지를 찾아보니 메모리 누수(leak) 때문인 것 같다고

말하는 글이 많던데.... 커널 자체의 버그인지 아니면 제가 돌리는

어플리케이션의 문제인지 명확하지 않아서 잘 모르겠습니다.

혹시나 어떤 문제인지 알고 계시는 분 있으시면 조그마한 조언이라도

해 주시면 감사하겠습니다 ^^

kernel: oom-killer: gfp_mask=0xd2
kernel: Mem-info:
kernel: DMA per-cpu:
kernel: cpu 0 hot: low 2, high 6, batch 1
kernel: cpu 0 cold: low 0, high 2, batch 1
kernel: cpu 1 hot: low 2, high 6, batch 1
kernel: cpu 1 cold: low 0, high 2, batch 1
kernel: cpu 2 hot: low 2, high 6, batch 1
kernel: cpu 2 cold: low 0, high 2, batch 1
kernel: cpu 3 hot: low 2, high 6, batch 1
kernel: cpu 3 cold: low 0, high 2, batch 1
kernel: Normal per-cpu:
kernel: cpu 0 hot: low 32, high 96, batch 16
kernel: cpu 0 cold: low 0, high 32, batch 16
kernel: cpu 1 hot: low 32, high 96, batch 16
kernel: cpu 1 cold: low 0, high 32, batch 16
kernel: cpu 2 hot: low 32, high 96, batch 16
kernel: cpu 2 cold: low 0, high 32, batch 16
kernel: cpu 3 hot: low 32, high 96, batch 16
kernel: cpu 3 cold: low 0, high 32, batch 16
kernel: HighMem per-cpu:
kernel: cpu 0 hot: low 14, high 42, batch 7
kernel: cpu 0 cold: low 0, high 14, batch 7
kernel: cpu 1 hot: low 14, high 42, batch 7
kernel: cpu 1 cold: low 0, high 14, batch 7
kernel: cpu 2 hot: low 14, high 42, batch 7
kernel: cpu 2 cold: low 0, high 14, batch 7
kernel: cpu 3 hot: low 14, high 42, batch 7
kernel: cpu 3 cold: low 0, high 14, batch 7
kernel: 
kernel: Free pages:       13596kB (112kB HighMem)
kernel: Active:143344 inactive:104920 dirty:0 writeback:0 unstable:0 free:3399 slab:3604 mapped:247643 pagetables:920
kernel: DMA free:12588kB min:16kB low:32kB high:48kB active:0kB inactive:0kB present:16384kB pages_scanned:32 all_unreclaimable? yes
kernel: protections[]: 0 0 0
kernel: Normal free:896kB min:928kB low:1856kB high:2784kB active:508732kB inactive:361468kB present:901120kB pages_scanned:8898780 all_unreclaimable? yes
kernel: protections[]: 0 0 0
kernel: HighMem free:112kB min:128kB low:256kB high:384kB active:64516kB inactive:58212kB present:131020kB pages_scanned:581889 all_unreclaimable? yes
kernel: protections[]: 0 0 0
kernel: DMA: 3*4kB 4*8kB 4*16kB 2*32kB 4*64kB 1*128kB 1*256kB 1*512kB 1*1024kB 1*2048kB 2*4096kB = 12588kB
kernel: Normal: 0*4kB 4*8kB 0*16kB 1*32kB 1*64kB 0*128kB 1*256kB 1*512kB 0*1024kB 0*2048kB 0*4096kB = 896kB
kernel: HighMem: 0*4kB 8*8kB 3*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 112kB
kernel: Swap cache: add 515823, delete 268841, find 110436365/110439007, race 1+16
kernel: 0 bounce buffer pages
kernel: Free swap:       1021132kB
kernel: 262131 pages of RAM
kernel: 32755 pages of HIGHMEM
kernel: 3515 reserved pages
kernel: 1060 pages shared
kernel: 246984 pages swap cached
kernel: Out of Memory: Killed process 9528 (testlinux).
ydhoney의 이미지

로그 자체는 일부만 가지고는 좀 힘들고 전체적인 시스템 로그를 보아야 알 듯 싶고, 제가 생각하는 부분이 맞다면 현재 RHEL4의 release버전을 사용하고 계시는게 아닐까 싶습니다. 현재 사용하고 계신 하드웨어 모델(벤더사에 한해서)과 정확한 RHEL4 의 update 버전등을 명시하여주시고 현재 돌아가고 있는 데몬들 및 주요 사용용도가 무엇인지, 기타 OS에서 제공하는 데몬이 아닌 추가적으로 올라가는 솔루션이나 어플리케이션이 존재하는지, 그리고 top 결과값등을 알려주시면 좀 더 좋은 답변을 드릴 수 있을 듯 싶습니다.

(근데 현재 증상은 memory leak에 의한 증상이 맞습니다. 단지 문제는 현재 memory leak을 일으키는 곳이 어느 부분이냐 하는것이 문제가 되겠지요. 그래야 해결방법을 찾아볼 수 있을테니까요.)

댓글 달기

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
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.