-
Notifications
You must be signed in to change notification settings - Fork 170
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
Cannot change --max-old-space-size #153
Labels
bug
Something isn't working
Comments
This should work:
Given that |
This bug should be fixed in |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
I am trying to adjust the node heap limit of my app running on bytenode, but I couldn't.
Steps to reproduce:
Create a test.js file:
console.log(`node heap limit = ${ require('v8').getHeapStatistics().heap_size_limit / (1024 * 1024) } Mb`)
Execution using node:
node test.js
Output
node heap limit = 2096 Mb
Execution using node with --max-old-space-size:
node --max-old-space-size=7500 test.js
Output
node heap limit = 7548 Mb
Execution using bytenode:
node --max-old-space-size=7500 node_modules/bytenode/lib/cli.js ./test.jsc
Output
node heap limit = 2096 Mb
Execution using bytenode sending --max-old-space-size:
node node_modules/bytenode/lib/cli.js ./test.jsc --max-old-space-size=7500
Output
node heap limit = 2096 Mb
So my next attempt was to fork a process sending --max-old-space-size on execArgv:
node test.js
Output:
If I execute the same code using bytenode:
The text was updated successfully, but these errors were encountered: