草庐IT

Scavenge

全部标签

node.js - 如何避免在清除 gc 期间快速增加内存?

我有一个基于restify的应用程序。我没有内存泄漏,但是在清除gc期间我的内存增长很大,然后是重量级的mark-sweepgc并清理了内存。它会影响我的应用程序的性能。[2268]266859ms:Scavenge61.5(119.5)->46.0(119.5)MB,2.2ms[allocationfailure].[2268]267084ms:Scavenge63.7(119.5)->48.3(119.5)MB,6.2ms[allocationfailure].[2268]267289ms:Scavenge66.0(119.5)->50.6(119.5)MB,2.6ms[alloc

node.js - 如何避免在清除 gc 期间快速增加内存?

我有一个基于restify的应用程序。我没有内存泄漏,但是在清除gc期间我的内存增长很大,然后是重量级的mark-sweepgc并清理了内存。它会影响我的应用程序的性能。[2268]266859ms:Scavenge61.5(119.5)->46.0(119.5)MB,2.2ms[allocationfailure].[2268]267084ms:Scavenge63.7(119.5)->48.3(119.5)MB,6.2ms[allocationfailure].[2268]267289ms:Scavenge66.0(119.5)->50.6(119.5)MB,2.6ms[alloc