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 > DB takes too much memory

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-11-04, 03:40
loge loge is offline
Registered User
 
Join Date: Nov 2003
Posts: 30
DB takes too much memory

Hi,

after restoring a production database on my development pc (quite a big production db), db2 is claiming 2GB of memory resulting in crazy swapping sessions of my PC which makes it unusable.

I tried several settings like decreasing "database_memory" pages and other stuff, but each time i connect to my db, the memory increases to about 2gb. Can someone tell me what i should do, to keep the memory usage of my db in some area about 500 megs? I must avoid swapping under all circumstances.

Short note on how i restored. I created a default empty database and restored the backup into the existing empty database.

Thanks for infos.
Reply With Quote
  #2 (permalink)  
Old 05-11-04, 03:54
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
I don't know what you mean by "database_memory" pages, but the buffer pools are probably using the most memory. You can alter the number of pages for each of the defined buffer pools, or use the Control Center to change the size.
__________________
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 05-11-04, 14:42
urs_77 urs_77 is offline
Member
 
Join Date: Jan 2003
Location: Schaumburg, IL
Posts: 79
Can you attach your dbm cfg and db cfg output?

Naveen.
__________________
Naveen Urs
DBA Manager
IBM Certified Solutions Expert - DB2 LUW V7, V9
Reply With Quote
  #4 (permalink)  
Old 05-11-04, 14:49
J Petruk J Petruk is offline
Registered User
 
Join Date: Mar 2004
Location: Toronto, ON, Canada
Posts: 513
Quote:
Originally Posted by Marcus_A
I don't know what you mean by "database_memory" pages, but the buffer pools are probably using the most memory. You can alter the number of pages for each of the defined buffer pools, or use the Control Center to change the size.
And if you cannot connect due to the current size, use DB2_OVERRIDE_BPF to set a temporary smaller bufferpool size... then update the "real" values as above, and unset that parameter.
__________________
--
Jonathan Petruk
DB2 Database Consultant
Reply With Quote
  #5 (permalink)  
Old 05-12-04, 15:17
dbamota dbamota is offline
Registered User
 
Join Date: Sep 2003
Posts: 237
You get the db config from production. You have to change your bufferpool sizes using ALTER BUFFERPOOL... command. Run this db2 to see current allocations.
db2 "select rtrim(bpname), npages,pagesize from syscat.bufferpools" HTH
__________________
mota
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