• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3337
  • Last Modified:

kernel: Out of Memory: Killed process

Hi,

I am getting out of memory error in my Linux Redhat server. Kernel used: 2.6.9-67

Please help me to check on the message below on what could be the possible cause for the out of memory error? Thanks.

Jun 20 17:35:56 ckprbtdb02 sshd(pam_unix)[28465]: session opened for user oracle by (uid=0)
Jun 20 17:35:56 ckprbtdb02 kernel: Free pages:       16128kB (512kB HighMem)
Jun 20 17:35:56 ckprbtdb02 kernel: Active:1344988 inactive:1109 dirty:0 writeback:0 unstable:0 free:4032 slab:28979 mapped:1346624 pagetables:677920
Jun 20 17:35:56 ckprbtdb02 kernel: DMA free:12008kB min:64kB low:128kB high:192kB active:0kB inactive:0kB present:16384kB pages_scanned:0 all_unreclaimable? yes
Jun 20 17:35:56 ckprbtdb02 kernel: protections[]: 0 0 0
Jun 20 17:35:56 ckprbtdb02 kernel: Normal free:3608kB min:3728kB low:7456kB high:11184kB active:336kB inactive:8kB present:901120kB pages_scanned:1707 all_unreclaimable? no
Jun 20 17:35:57 ckprbtdb02 kernel: protections[]: 0 0 0
Jun 20 17:35:57 ckprbtdb02 kernel: HighMem free:512kB min:512kB low:1024kB high:1536kB active:5379632kB inactive:4428kB present:7733244kB pages_scanned:0 all_unreclaimable? no
Jun 20 17:35:57 ckprbtdb02 kernel: protections[]: 0 0 0
Jun 20 17:35:57 ckprbtdb02 kernel: DMA: 4*4kB 3*8kB 4*16kB 2*32kB 3*64kB 1*128kB 1*256kB 0*512kB 1*1024kB 1*2048kB 2*4096kB = 12008kB
Jun 20 17:35:57 ckprbtdb02 kernel: Normal: 0*4kB 1*8kB 1*16kB 4*32kB 0*64kB 1*128kB 1*256kB 0*512kB 1*1024kB 1*2048kB 0*4096kB = 3608kB
Jun 20 17:35:57 ckprbtdb02 kernel: HighMem: 0*4kB 8*8kB 0*16kB 0*32kB 1*64kB 1*128kB 1*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 512kB
Jun 20 17:35:57 ckprbtdb02 kernel: Swap cache: add 1368970, delete 1348492, find 146538/199240, race 0+20
Jun 20 17:35:57 ckprbtdb02 kernel: 0 bounce buffer pages
Jun 20 17:35:57 ckprbtdb02 kernel: Free swap:       7283244kB
Jun 20 17:35:57 ckprbtdb02 kernel: 2162687 pages of RAM
Jun 20 17:35:57 ckprbtdb02 kernel: 1867759 pages of HIGHMEM
Jun 20 17:35:57 ckprbtdb02 kernel: 84049 reserved pages
Jun 20 17:35:57 ckprbtdb02 kernel: 43679573 pages shared
Jun 20 17:35:57 ckprbtdb02 kernel: 20426 pages swap cached
Jun 20 17:35:57 ckprbtdb02 kernel: Out of Memory: Killed process 17657 (oracle).
Jun 20 17:36:01 ckprbtdb02 kernel: oom-killer: gfp_mask=0xd0
Jun 20 17:36:01 ckprbtdb02 kernel: Mem-info:
Jun 20 17:36:01 ckprbtdb02 kernel: DMA per-cpu:
0
hocheeming
Asked:
hocheeming
  • 3
  • 2
1 Solution
 
MikeOM_DBACommented:
1) Did you set the Kernel parameters correctly?
2) How large is your SGA compared with total memory?
0
 
hocheemingAuthor Commented:
The SGA memory is 1.5GB. I am not sure about the kernel parameter. How can I check?
0
 
hocheemingAuthor Commented:
Could this be the problem?

 kernel: Normal free:3608kB min:3728kB low:7456kB high:11184kB


The normal free is below min value of 3728kB. Where can I set this threshold to a lower value?
0
 
MikeOM_DBACommented:
0
 
MikeOM_DBACommented:
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 1048576
net.core.rmem_max = 1048576
net.core.wmem_default = 262144
net.core.wmem_max = 262144

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now