Skip to content
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

Getting Error NJS-024: memory allocation failed on oracledb 1.0.0 #174

Closed
nelreina opened this issue Aug 21, 2015 · 7 comments
Closed

Getting Error NJS-024: memory allocation failed on oracledb 1.0.0 #174

nelreina opened this issue Aug 21, 2015 · 7 comments
Labels

Comments

@nelreina
Copy link

Query works fine on 0.6.0 and 0.7.0;
But when I ran the same query on 1.0.0 I received the mentioned error.

@cjbj
Copy link
Member

cjbj commented Aug 21, 2015

@nelreina "we need a testcase" would normally be my first response. But what would be useful to know in this case is what the DB character set is, and what the client character set is? We haven't yet done a memory optimization that will help for some character sets.

The NJS-024 is not unexpected. See https://github.com/oracle/node-oracledb/blob/master/CHANGELOG.md where it mentions extra memory is allocated, and where it mentions we fixed a crash allocating large amounts of memory - hence you can get the NJS-024 instead of corruption. (I also mentioned this in #65 (comment))

@cjbj cjbj added the invalid label Aug 21, 2015
@cjbj cjbj closed this as completed Aug 21, 2015
@cjbj
Copy link
Member

cjbj commented Aug 21, 2015

PS. Use ResultSets.

@nelreina
Copy link
Author

@cjbj Ok Thanks for the response. I'll dive into it on monday :-) Have nice weekend.

@cjbj
Copy link
Member

cjbj commented Sep 3, 2015

@nelreina Try with 1.1. We optimized memory allocation a bit for queries in all environments. And if the DB is using AL32UTF8 then node-oracledb 1.1 will use the same memory as 0.7, give or take allocations for other changes.

@nelreina
Copy link
Author

nelreina commented Sep 3, 2015

@cjbj Thanks for the update. Did not had a chance to to update my system yet. Went back to V 0.7.
I will keep you updated when I do.

@rajeshpkumar
Copy link

*@cjbj * Still i'm facing the same issue "NJS-024: Memory allocation failed". I'm using node-oracledb 1.7.1 version. Let me know if any update on this issue.

@cjbj
Copy link
Member

cjbj commented Mar 30, 2016

@rajeshpkumar Start by RTM in case you need to tune something. https://github.com/oracle/node-oracledb/blob/master/doc/api.md After that, post specific questions with useful details. Use a new thread.

@oracle oracle locked and limited conversation to collaborators Mar 30, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants