-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Memory leak in deqMany #1524
Comments
Can you add code to create the queue and add runnable code do the enqueues, so we know what's in the queue? |
Queue is empty.
|
@pvenkatraman another task for you :) |
Maybe bug in function When it run, then I run code below and no memory leaks
Script in my first post output:
memory usage between 60858368 and 62414848 |
Thanks @boriborm will take a look. |
Bug in
This function run OCI function When i change it to
no memory leak |
Thanks, working with another team member on this issue. Will update soon. |
Is this problem solved in any specific version? Version less than 6 from here |
@JoshuaCEnrico The memory profile with node-oracledb 6.x has changed slightly, because of the refactoring to use less C code in general, in addition to the newly introduced Thin mode. We will try to see if this can be reproduced in the 6.x version and get back to you. |
@sharadraju |
@999max There were some memory leak issues with AQ which were fixed in the latest Oracle Instant Client libraries. |
hey @sharadraju |
@999max Can you please indicate what Oracle Instant Client library version was used. You will have to use the latest Oracle Instant Client libraries, preferably Oracle Instant Client 23.5. |
Hi @sharadraju . Is this an official recommendation? Our DBA suggests taking a conservative approach and using 19 client for 19 database etc. |
The issue we think it was was fixed in 23.5. I don't see a backport for 19 having landed yet, but it was requested. The Oracle bug is 36741214 |
@sharadraju |
@999max , Проблема не в node-oracledb. Проблема в oracle instant client, который использует node-oracledb. В 6-й версии, насколько я помню, работа с очередями средствами node-oracledb напрямую с сервером ещё не поддерживается и работает только через использование оракл клиент. А ошибка в нем. И соответствующий запрос уже в оракл сделан. Но там эту проблему вероятно решили в версии оракл клиента 23.5. Я дальше 21-й версии не проверял, т.к. реализовал код используя deqOne. |
Platform: linux
Node version: v14.17.6
Architecture: x64
node-oracledb version: 5.5.0
Oracle client version: 21.3.0.0.0
Crash
FATAL ERROR: MarkCompactCollector: young object promotion failed Allocation failed - JavaScript heap out of memory
output:
The text was updated successfully, but these errors were encountered: