search

Home  >  Q&A  >  body text

node.js - heapUsed正常,但是rss不断涨,这是我自己的问题,还是nodejs的bug?

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

大家讲道理大家讲道理2788 days ago1294

reply all(3)I'll reply

  • 黄舟

    黄舟2017-04-17 11:34:04

    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

    reply
    0
  • 巴扎黑

    巴扎黑2017-04-17 11:34:04

    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.

    reply
    0
  • ringa_lee

    ringa_lee2017-04-17 11:34:04

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

    reply
    0
  • Cancelreply