英文:
Can we still use max-new-space-size in nodejs?
问题
我们还可以在Node.js中使用max-new-space-size吗?它是如何工作的?
如果是的话,那么max-old-space-size和max-new-space-size之间的理想比例是多少?
有人可以帮助我理解这个吗?
英文:
Can we still use max-new-space-size in nodejs ? how does it work ?
if yes then what is the ideal ratio between max-old-space-size and max-new-space-size?
can someone please help me understand this ?
答案1
得分: 2
No, that flag does not exist.
There is --max-semi-space-size
. The best option is to leave it alone. There is no "ideal ratio" between old and new space sizes; their size ratio does not matter.
It's fine to increase the max old space size if you need a bigger heap; there is no reason to change the new space size when you do that.
英文:
No, that flag does not exist.
There is --max-semi-space-size
. The best option is to leave it alone. There is no "ideal ratio" between old and new space sizes; their size ratio does not matter.
It's fine to increase the max old space size if you need a bigger heap; there is no reason to change the new space size when you do that.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论