Skip to content

Memory leak with getRows() #1194

Open
Open
@lkiii

Description

@lkiii
  1. Is it an error or a hang or a crash?
    Out of memory. RAM usage.
  2. What error(s) you are seeing?
    This output is visible after ~20 http rest api calls to the server and each request accesses database via oracledb.
rss: " 1158.07 MB"
heapTotal: " 65.07 MB"
heapUsed: " 42.65 MB"
external: " 1.34 MB"
  1. Include a runnable Node.js script that shows the problem.
    I am closing all the connections and triggering garbage collector manually.
    oracledb is used to call stored procedures and functions with object binds. I am using connection.getDbObjectClass() for the binds and I suspect this could be the cause of the memory issues. It seems that all the issues have started after upgrading to this approach.
  2. Run node and show the output of:
> process.platform
'linux'
> process.version
'v12.14.0'
> process.arch
'x64'
> require('oracledb').versionString
'4.1.0'
> require('oracledb').oracleClientVersionString
'18.3.0.0.0'
  1. What is your Oracle Database version?
    12c

Here is the backstory, how I have come to a conclusion that this is oracledb related issue nodejs/help#2393

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions