lincya
V2EX  ›  问与答

OpenResty 持续运行内存不会回收

  •  
  •   lincya · May 31, 2020 · 1800 views
    This topic created in 2177 days ago, the information mentioned may be changed or developed.

    使用 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 内存。

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

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2873 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 11:02 · PVG 19:02 · LAX 04:02 · JFK 07:02
    ♥ Do have faith in what you're doing.