V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
lincya
V2EX  ›  问与答

OpenResty 持续运行内存不会回收

  •  
  •   lincya · 2020-05-31 15:45:26 +08:00 · 1008 次点击
    这是一个创建于 1397 天前的主题,其中的信息可能已经有所发展或是发生改变。

    使用 OpenResty 运行做压力测试时,发现 OpenResty 占用的内存不会被回收

    使用 Systemctl status OpenResty,显示如下:

    ===========================================================================

    ● openresty.service - SYSV: OpenResty is a scalable web platform by extending

    Loaded: loaded (/etc/rc.d/init.d/openresty; bad; vendor preset: disabled)

    Active: active (running) since Sun 2020-05-31 14:00:00 CST; 38min ago

     Docs: man:systemd-sysv-generator(8)
    

    Process: 14643 ExecStart=/etc/rc.d/init.d/openresty start (code=exited, status=0/SUCCESS)

    Main PID: 14848 (nginx)

    Tasks: 2
    

    Memory: 2.0G

    CGroup: /system.slice/openresty.service

           ├─14848 nginx: master process /usr/local/openresty/nginx/sbin/nginx -c /usr/local/openre...
           
           └─24854 nginx: worker process
    

    ==========================================================

    可以看到已经占用了 2.0G 内存。

    请问大家这是什么原因呢?解决方案是什么??

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3997 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 05:14 · PVG 13:14 · LAX 22:14 · JFK 01:14
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.