node.js - heapUsed正常,但是rss不断涨,这是我自己的问题,还是nodejs的bug?
大家讲道理
大家讲道理 2017-04-17 11:32:04
0
3
1303

我有一个用pomelo写的服务器,启动时运行正常,几小时以后rss和heapTotal开始不断增长,奇怪的是heapUsed一直保持稳定在200MB左右,然后当rss和heapTotal涨到1.4GB时,cpu占用会飙升到100%,进程失去响应.
请问这是我自己代码的问题还是nodejs的问题?有人遇到过同样的情况吗?

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(3)
黄舟

There is too little information... I have never used pomelo, sorry....

However, it seems that frequent and large amounts of memory requests and recycling may cause similar phenomena....

It seems that this tool can perform relatively real-time detection, and it is very simple to use. Just change the startup commandpm start app.js
https://github.com/Unitech/pm2

After thatpm2 monitTry real-time monitoring

Meow

巴扎黑

I also encountered it, LZ, how did you solve it?
My RSS memory of connector-server-01 has been increasing, much higher than other connectors.

左手右手慢动作

Excuse me, there is a problem with the connector process rss. Have you found the reason?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template