如何清除内存中的Node.js源代码缓存

时间:2019-11-29 03:57:27

标签: node.js memory-management

我使用Node.js(8.9)运行由webpack捆绑的应用程序。我发现以下屏幕截图显示内存抖动相对较高。

enter image description here

检查堆内存后,我发现内存中有vm.Script创建的许多源字符串,并且对其引用进行了修饰。

源代码

enter image description here

参考对象

enter image description here

我的问题是:

  • 这样的内存抖动正常吗?
  • 此源代码在内存中正常吗?

0 个答案:

没有答案