可以在Node.js中继续使用max-new-space-size吗?

huangapple go评论100阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2023年1月4日 14:33:25
  • 转载请务必保留本文链接:https://go.coder-hub.com/75001706.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定