Using DBMS_XMLSTORE With Lobs Leaking Memory In The "alloc lob locat" Area (Doc ID 1924300.1)

Last updated on SEPTEMBER 08, 2014

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.4 to 12.1.0.1 [Release 11.2 to 12.1]
Information in this document applies to any platform.

Symptoms

You are using PLSQL code, which use temporary lobs and DBMS_XMLSTORE and you are noticing that the PGA continues to grow and is not releasing the memory.

Heap dumps after each execution shows that the "alloc lob locat" area within the "koh-kghu sessi" is continually growing.

You applied the fix for <<Bug:17753923>>, and some improvements were seen,  yet the memory continues to leak.

 

EXAMPLE:

---> HEAP DUMP heap name="koh-kghu sessi"  desc=ffffffff7964f660
             Type           Count             Sum         Average
             ~~~~           ~~~~~             ~~~         ~~~~~~~
         freeable            3146        51326144        16314.73
             perm               1              80           80.00
.
BreakDown
~~~~~~~~~
             Type           Count             Sum         Average Percent
             ~~~~           ~~~~~             ~~~         ~~~~~~~ ~~~~~~~
  alloc lob locat            3143        51318904        16328.00  99.99
  koc kochd                     1            4120         4120.00   0.01
  kpplal dvoid                  1            2072         2072.00   0.00
  perm                          1              80           80.00   0.00
  koc koccn                     1            1048         1048.00   0.00
.
Total = 51326224 bytes        50123.27k           48.95MB
.
After the second execution:
.
---> HEAP DUMP heap name="koh-kghu sessi"  desc=ffffffff7964f660
             Type           Count             Sum         Average
             ~~~~           ~~~~~             ~~~         ~~~~~~~
         freeable            6380       104130896        16321.46
             perm               1              80           80.00
.
BreakDown
~~~~~~~~~
             Type           Count             Sum         Average Percent
             ~~~~           ~~~~~             ~~~         ~~~~~~~ ~~~~~~~
  alloc lob locat            6377       104123656        16328.00  99.99
  koc kochd                     1            4120         4120.00   0.00
  kpplal dvoid                  1            2072         2072.00   0.00
  perm                          1              80           80.00   0.00
  koc koccn                     1            1048         1048.00   0.00
.
Total = 104130976 bytes       101690.41k           99.31MB 
.

 

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms