Solved

kernel: Out of Memory: Killed process

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Linux Real Time Memory on Distinct 24 Cycle 7 29
oracle date format checking 7 26
UTL_FILE invalid file operation 5 29
PL/SQL: ORA-00979: not a GROUP BY expression 3 32
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
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.

827 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