Solved

kernel: Out of Memory: Killed process

Posted on 2008-06-20
7
3,261 Views
Last Modified: 2013-12-18
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
Comment
Question by:hocheeming
  • 3
  • 2
7 Comments
 
LVL 29

Expert Comment

by:MikeOM_DBA
ID: 21833058
1) Did you set the Kernel parameters correctly?
2) How large is your SGA compared with total memory?
0
 

Author Comment

by:hocheeming
ID: 21833180
The SGA memory is 1.5GB. I am not sure about the kernel parameter. How can I check?
0
 

Author Comment

by:hocheeming
ID: 21833233
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
 
LVL 29

Expert Comment

by:MikeOM_DBA
ID: 21833603
0
 
LVL 29

Accepted Solution

by:
MikeOM_DBA earned 125 total points
ID: 21833614
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

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now