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 > Private memory and/or virtual address space exhausted

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-30-09, 18:57
sundaram sundaram is offline
Registered User
 
Join Date: Mar 2006
Posts: 104
Question Private memory and/or virtual address space exhausted

Hi,

We use DB2 8.2.6 on Windows 2000.

We got following intermittent error in our production database.
2009-04-29-17.30.56.179000+600 E1032965H590 LEVEL: Severe (OS)
PID : 3228 TID : 6420 PROC : db2syscs.exe
INSTANCE: AXISPROD NODE : 000 DB : AXISRTDL
APPHDL : 0-744 APPID: G15DC749.N50C.023D49023714
FUNCTION: DB2 UDB, oper system services, getPrivateChunksFromOs, probe:100
CALLED : OS, -, VirtualAlloc
OSERR : 8 "Not enough storage is available to process this command."
MESSAGE : Private memory and/or virtual address space exhausted
DATA #1 : Requested size, PD_TYPE_MEM_REQUESTED_SIZE, 4 bytes
4145152
These errors happened during one of our extreme peak load period. We also notice at that time the memeory usage as shown by Windows Task manager was around 1 GB . These errors disappered affter an hour or so. After this we have not got this error so far. We think users did not have visible impact because of this error - because no one came around our desk to annoy us!!.

We do notice the error comes when db memeory utilisation (as shown by Windows Task manager) comes new 1 GB. Our server has 4GB RAM and 4GB Virtual memeory. Also there are is plenty of free memory in the server.

In our instance the private memory settings are:
MIN_PROV_MEM 32 * 4KB pages
PRIV_MEM_THRESH 1296 * 4KB pages
Any idea why we get these errors?

Thanks

Hari Kumar
Reply With Quote
  #2 (permalink)  
Old 05-01-09, 07:59
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
This memory allocation error is generated by Windows when address space is being exhausted. With 32-bit architecture, DB2 can access 2GB of memory by default. The errors are the result of running out of 2GB default address space limit available to 32-bit processes on Windows or memory fragmentation. There is a known issue which is fixed wtih JR24363 in fp15 and higher: IBM - JR24363: EXCESSIVE MEMORY FRAGMENTATION IN DB2SYSCS ADDRESS SPACE ON WINDOWS CAUSES MEMORY ALLOCATION FAILURES

To take a full advantage of this APAR, the following changes are needed:
db2set DB2_MEMALLOCATE_HIGH=YES
db2set DB2MEMMAXFREE=2000000
db2 update dbm cfg using PRIV_MEM_THRESH 500

You may also consider using /3GB switch, if it's supported in your env. Take a look here: The DB2 UDB memory model
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