If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > low on memory

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-26-09, 20:10
db2aix db2aix is offline
Registered User
 
Join Date: Jul 2009
Location: USA
Posts: 50
low on memory

We're running out of memory on an AIX box running DB2 Version 9.1. We have 32GB of memory and free memory is around 1-2 GB.

Can you suggest where to start troubleshooting this problem?
Reply With Quote
  #2 (permalink)  
Old 09-26-09, 23:40
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
It may not actually be a problem. UNIX and Linux are very aggressive in using free memory for file caching, but will give it back immediately if needed. I would calculate the memory used by DB2 for all instances and databases (db2mtrk is a good place to start) to make sure DB2 is not using more than 80-90% of total system memory.

I would also turn off file system caching for all tablespaces, except those which contain LOB objects. It would also help if you could find a really good UNIX system administrator who might be able to limit the amount of file system caching by the OS, but those people are very hard to come by.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #3 (permalink)  
Old 09-27-09, 09:09
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
You can also check how many db2agents you have running on the box and how much private memory they're using. You can look at the RSS column in the "ps aux" output. Add them up to see how much private memory they're consuming. Example:
ps aux | grep db2ag | grep -v grep | awk '{ sum += $6 } END { print sum * 1024 }'

If you find many db2agent processes and most of them are idle or waiting to do some work, then consider lowering num_poolagents and setting db2memmaxfree registry variable (can set it to 1-2MB). It can bring down the memory usage considerably if you have many agents that are not doing anything.
Reply With Quote
  #4 (permalink)  
Old 09-27-09, 18:30
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
Also, take a look at the following technote:
IBM - Recommended AIX Virtual Memory Manager settings for DB2
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On