简体   繁体   English

使用Sails.js框架在简单页面刷新Node.js上的Ram内存消耗持续增加

[英]Ram memory consumption continuously increasing on simple page refresh Node.js using Sails.js Framework

I have a Sails JS app which initially starts at memory 1.2 % of my 8GB RAM and when i continuously refresh the page it jumps of to 3 to 4.1 % and which is never released . 我有一个Sails JS应用程序,该应用程序最初从内存8GB RAM的1.2%开始,当我不断刷新页面时,它会跳至3%至4.1%,并且从未发布过。 I have a heap snapshot and have refactored all the code but still the issue is same (Removed any timers ,global variables from clientside and server side script). 我有一个堆快照,并重构了所有代码,但问题仍然相同(从客户端和服务器端脚本中删除了所有计时器,全局变量)。

Is this issue with sails app as there are many tickets on git but without any conclusion and what are the necessary steps that can be taken to resolve this . Sails应用程序是否存在此问题,因为git上有很多票证,但没有任何结论,可以采取哪些必要步骤来解决此问题。

I have snapshot of heap using heapdump which are taken manually and i can share it with you . 我有使用heapdump获取的堆快照,这些快照是手动获取的,可以与您共享。 Heap Snapshots 堆快照

Before Load 加载前

After Load 414 MB 加载后414 MB

Your question is too broad to be answered directly. 您的问题范围太广,无法直接回答。 Usually the best way to track down resource leaks is to profile your application. 通常,跟踪资源泄漏的最佳方法是分析应用程序。 Here's a page introducing profiling with Node: https://nodejs.org/en/docs/guides/simple-profiling/ 这是介绍Node分析的页面: https : //nodejs.org/en/docs/guides/simple-profiling/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM