home clear 64x64
en blue 200x116 de orange 200x116 info letter User
suche 36x36
Latest versionsfixlist
11.1.0.7 FixList
10.5.0.9 FixList
10.1.0.6 FixList
9.8.0.5 FixList
9.7.0.11 FixList
9.5.0.10 FixList
9.1.0.12 FixList
Have problems? - contact us.
Register for free anmeldung-x26
Contact form kontakt-x26

DB2 - Problem description

Problem IC82958 Status: Closed

MEMORY LEAK IN APPLICATION HEAP IN DB2 9.8 OR HIGHER USING THE DB2READLOG
API OVER A PERSISTENT CONNECTION

product:
DB2 FOR LUW / DB2FORLUW / 980 - DB2
Problem description:
Memory Usage in the Application Heap will grow during the scope 
of a connection when the db2ReadLog API is called.  This problem 
only occurs for DB2 Version 9.8 and higher which uses multiple 
agents to enhance the performance of log scanning.  Replication 
applications may be impacted.  A workaround is to periodically 
recycle the application / connection, which frees the entire 
application heap for the connection. 
 
In order to diagnose this problem: 
Monitor for constantly increasing memory usage of Application 
Memory in any of : 
 
db2pd -dbptnmem 
(See the "Used" value for the APPL-<database> consumer) 
 
db2pd -db <db> -memsets 
(see the "Used" column for the "AppCtl Memory Set) 
 
where available, use the MON_GET_MEMORY_SET routine 
(see the MEMORY_SET_USED for the APPLICATION memory set) 
 
 
Monitor for constantly increasing Application Heap usage, 
especially an application known to be calling the db2ReadLog api 
 
db2pd -db <db> -mempools 
(see the PhySz column for any memory pool where PoolName = apph) 
 
examine an application snapshot for an application with high 
application memory usage 
 
where available, use the MON_GET_MEMORY_POOL routine 
(see the MEMORY_POOL_USED value for any memory pool of type 
"APPLICATION") 
 
Using "db2pd -db <db> -memblocks all", confirm that memory 
blocks are accumulating where the "File" value matches the 
following: 
 
Memory blocks sorted by size for apph pool: 
PoolName TotalSize(Bytes) TotalCount LOC  File 
apph        286880616         442717     148   605356440
Problem Summary:
**************************************************************** 
* USERS AFFECTED:                                              * 
* Systems with replication or other log scanning activity      * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* See Error Description                                        * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Upgrade to DB2 Version 9.8 Fix Pack 5                        * 
****************************************************************
Local Fix:
Periodically recycle any application (such as replication) with 
a persistent connection which makes use of the db2ReadLog API 
call.
Solution
First fixed in DB2 Version 9.8 Fix Pack 5
Workaround
See Local Fix
BUG-Tracking
forerunner  : APAR is sysrouted TO one or more of the following: IC82971 
follow-up : 
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
26.04.2012
10.08.2012
10.08.2012
Problem solved at the following versions (IBM BugInfos)
9.8.FP5
Problem solved according to the fixlist(s) of the following version(s)
9.8.0.5 FixList