Issue with node-oracledb Connection Pool Not Releasing Connections Back to Database #1704
Unanswered
sidharth74659
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We're experiencing a steady increase in PGA memory in our Oracle database, and we're trying to identify the root cause. We suspect that the connection pool in our application is not releasing connections back to the database as expected. Here are the details of our configuration and the issue we're facing:
Connection Pool Configuration:
poolMin
: 5poolMax
: 10poolIncrement
: 1poolTimeout
: 10 secondsIssue Description: During periods of traffic, the number of connections increases from 5 (
poolMin
) to 10 (poolMax
). However, when the traffic is low, the connections are not being released back to 5 (poolMin
), even after 10 seconds (poolTimeout
) of inactivity.Reference: According to the node oracledb documentation:
Questions:
poolMin
?node-oracledb
?Any insights or suggestions would be greatly appreciated.
Additional Info:
Let me know if you need me to add anything to provide better answers.
What I Tried:
pool.getStatistics()
method to monitor the number of open, in-use, and idle connections in the pool.What I Expected:
poolMin
) to 10 (poolMax
).poolMin
) after 10 seconds (poolTimeout
) of inactivity.What Actually Happened:
poolMin
value)Beta Was this translation helpful? Give feedback.
All reactions