Solved

kernel: Out of Memory: Killed process

Posted on 2008-06-20
7
3,265 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

914 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