RHEL4 에서 memory leak 현상이...
글쓴이: amakusa / 작성시간: 화, 2006/01/17 - 1:10오후
안녕하세요. 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).
Forums:
로그 자체는 일부만 가지고는 좀 힘들고 전체적인 시스템 로그를 보아야 알
로그 자체는 일부만 가지고는 좀 힘들고 전체적인 시스템 로그를 보아야 알 듯 싶고, 제가 생각하는 부분이 맞다면 현재 RHEL4의 release버전을 사용하고 계시는게 아닐까 싶습니다. 현재 사용하고 계신 하드웨어 모델(벤더사에 한해서)과 정확한 RHEL4 의 update 버전등을 명시하여주시고 현재 돌아가고 있는 데몬들 및 주요 사용용도가 무엇인지, 기타 OS에서 제공하는 데몬이 아닌 추가적으로 올라가는 솔루션이나 어플리케이션이 존재하는지, 그리고 top 결과값등을 알려주시면 좀 더 좋은 답변을 드릴 수 있을 듯 싶습니다.
(근데 현재 증상은 memory leak에 의한 증상이 맞습니다. 단지 문제는 현재 memory leak을 일으키는 곳이 어느 부분이냐 하는것이 문제가 되겠지요. 그래야 해결방법을 찾아볼 수 있을테니까요.)
댓글 달기