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 > No memory available in the application heap

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-14-04, 07:55
grofaty grofaty is offline
Registered User
 
Join Date: Jan 2003
Posts: 1,570
No memory available in the application heap

Hi,

On DB2 V7.2 fp5 on Windows 2000 in db2diag.log the following message is constantly written: "No memory available in the application heap".

See details:
Code:
2004-06-14-12.11.07.568000   Instance:DB2   Node:000
PID:824(db2syscs.exe)   TID:4500   Appid:C0A80524.9B07.040614101103
access_plan_manager  sqlra_load_var   Probe:20   Database:DATABASE1
DIA3601C No memory available in the application heap.

I have executed the following command: "db2 get db cfg for database1 | find "APPLHEAPSZ". See the result.

Code:
 Default application heap (4KB)             (APPLHEAPSZ) = 128
I should probably increase the APPLHEAPSZ. What should new value be? Do I need to increase any other parameter?

Thanks,
Grofaty

Last edited by grofaty; 06-18-04 at 07:05.
Reply With Quote
  #2 (permalink)  
Old 06-14-04, 08:12
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
I would make it 512 ..

AFAIK, you do not need to adjust any other parm

Cheers
Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #3 (permalink)  
Old 06-14-04, 09:47
fynn00 fynn00 is offline
Registered User
 
Join Date: May 2004
Posts: 4
Grofaty,

the common way is to double it. if it is still not enough then double it again.
Another good way is to look at the application which is causing the error. In your case application C0A80524.9B07.040614101103. You can use the first part to obtain the ip adress (C0=192,A8=168,05=5,24=36) of the application or use snapshots to get more information about it.
Sometimes it is because there are still "open" result sets in the application.

cheers
fynn
Reply With Quote
  #4 (permalink)  
Old 06-15-04, 04:28
grofaty grofaty is offline
Registered User
 
Join Date: Jan 2003
Posts: 1,570
Thank you all folks.

fynn00, one more question. What is the meaning of complete set "C0A80524.9B07.040614101103?"

Ok, first string C0A80524 is IP address represented in hexadecimal value.
What is the meaning of other two strings: 9B07.040614101103

Thanks,
Grofaty
Reply With Quote
  #5 (permalink)  
Old 06-15-04, 04:31
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
9b07 - client port
040614101103 - Timestamp in CUT (yymmddhhmmss) - connection timestamp
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #6 (permalink)  
Old 06-15-04, 05:22
grofaty grofaty is offline
Registered User
 
Join Date: Jan 2003
Posts: 1,570
Thank you sathyaram_s,

Is client port in hexadecimal?
So the 9b07 is port number: 39687?

Thanks,
Grofaty
Reply With Quote
  #7 (permalink)  
Old 06-15-04, 11:40
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
yes .. it is in hex
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #8 (permalink)  
Old 06-15-04, 11:53
bmujeeb bmujeeb is offline
Registered User
 
Join Date: Mar 2004
Posts: 448
if you run

get snapshot for all <db_name>|grep -i "rejected block cursor requests"

compare this value to the no of requests for getting the results, then your aslheapsz is small.

regards,

mujeeb
Reply With Quote
  #9 (permalink)  
Old 06-18-04, 01:30
grofaty grofaty is offline
Registered User
 
Join Date: Jan 2003
Posts: 1,570
Hi,

Thanks to you all. Nice tips!

Grofaty
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