-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
V8Flags not in effect #422
Comments
Please try |
Can Node_LLAGS take effect in V8 mode? It doesn't take effect after I set it this way NodeFlags nodeFlags = NodeRuntimeOptions.NODE_FLAGS;
nodeFlags.setCustomFlags(new String[]{"--max-old-space-size=2", "--max-new-space-size=1"}); |
Do you think |
It is indeed unrealistic, but I want to know if this configuration can take effect and what the performance will be like when the memory exceeds the set value |
I have tried setting it to a different value, but this restriction does not take effect. If some large data operations are performed, it will still cause OOM |
Please leave a repo with the issue. |
I set V8Flag to the following parameters V8Flags v8Flags = NodeRuntimeOptions.V8_FLAGS;
v8Flags.setMaxHeapSize(4);
v8Flags.setMaxOldSpaceSize(4); Then execute the following JS code let a = [... new Array (100 * 1000 * 1000).keys()]; It can still execute normally, it seems that the memory limit has not taken effect When I enlarged the array, there was an OOM exception
|
Please read this blog. And, please test your setting in real Node.js. |
hi
I used Javert version 4.1.0 and V8 mode
Before initializing V8Runtime, I set some memory parameters in V8Flag to see what happens when the memory limit is exceeded.
Then I executed the following code in V8, but it doesn't seem to have taken effect. I would like to ask if it's because of my incorrect usage.
let a = [... new Array (9000000).keys()];
Also, I would like to ask if it is possible to support passing such a parameter every time V8Runtime is initialized, instead of a globally effective configuration
The text was updated successfully, but these errors were encountered: