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 IT00884 Status: Closed

POSSIBLE MEMORY LEAK WHEN USING 'INPUT ARRAY' AND THERE IS A
FATAL ERROR WHILE EXECUTING THE STATEMENT

product:
DB2 FOR LUW / DB2FORLUW / 970 - DB2
Problem description:
This problem can lead to very huge leaks but needs the following 
to be true: 
 
  - Statement must use 'input array' (SQL_ATTR_PARAMSET_SIZE in 
CLI) 
  - Statement must use 'non atomic' type 
(SQL_ATTR_PARAMOPT_ATOMIC in CLI) 
 
With those attributes any time one row in the array fails to 
insert/update/delete a new 
'sqlca' is allocated for that row. At the end of the 'execute' 
the 'sqlca' should be freed. 
 
This is true EXCEPT if at some point while we are dealing with 
rows in the array 
one of them fails with a 'fatal' error like for example running 
out of log space. 
In that case we internally perform a 'rollback' and the 'sqlca' 
allocated for each rows 
will be left not freed until the connection is closed. 
 
A 'db2pd -db <dbname> -memb -appl' will should blocks in 
'1582738789' 
each one the size of a 'sqlca' structure. 
The following is sample output for db2pd -memblocks -appl. 
Address            DataAddress        PoolID     PoolName 
BlkAge Size(Bytes)  I LOC   File 
0x000007FAAF5A8EE8 0x000007FAAF5A8F00 1          apph 
28583 136          1 4150  1582738789 
...
Problem Summary:
**************************************************************** 
* USERS AFFECTED:                                              * 
* ALL                                                          * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* See Error Description                                        * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Upgrade to DB2 Version 9.7 Fix Pack 10                       * 
****************************************************************
Local Fix:
Terminate connection or restart db2 instance
Solution
First fixed in Version 9.7 Fix Pack 10.
Workaround
not known / see Local fix
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
08.04.2014
17.11.2014
17.11.2014
Problem solved at the following versions (IBM BugInfos)
9.7.FP10
Problem solved according to the fixlist(s) of the following version(s)
9.7.0.10 FixList