nginx -s reload导致内存剧增,最终导致服务僵死

93 views
Skip to first unread message

汪剑

unread,
Dec 9, 2021, 3:26:47 AM12/9/21
to openresty
多次频繁进行nginx -s reload时,通过top命令发现,刚开始每次reload内存都将近增加一倍,5次之后,内存还在缓慢递增,最终导致服务僵死,通过valgrind查看是否存在内存泄漏,也没查出个什么(可能是自己不太会看),有大神遇到过这个问题吗?有没有有效的解决方法?

weiping he

unread,
Dec 9, 2021, 4:47:17 AM12/9/21
to openresty
try apply OpenResty XRay free trial to have it a check, the flame graph may help a lot

汪剑 <success...@gmail.com> 于2021年12月9日周四 上午8:27写道:
多次频繁进行nginx -s reload时,通过top命令发现,刚开始每次reload内存都将近增加一倍,5次之后,内存还在缓慢递增,最终导致服务僵死,通过valgrind查看是否存在内存泄漏,也没查出个什么(可能是自己不太会看),有大神遇到过这个问题吗?有没有有效的解决方法?

--
--
邮件来自列表“openresty”,专用于技术讨论!
订阅: 请发空白邮件到 openresty...@googlegroups.com
发言: 请发邮件到 open...@googlegroups.com
退订: 请发邮件至 openresty+...@googlegroups.com
归档: http://groups.google.com/group/openresty
官网: http://openresty.org/
仓库: https://github.com/agentzh/ngx_openresty
教程: http://openresty.org/download/agentzh-nginx-tutorials-zhcn.html
---
您收到此邮件是因为您订阅了Google网上论坛上的“openresty”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到openresty+...@googlegroups.com
要在网络上查看此讨论,请访问https://groups.google.com/d/msgid/openresty/a62ae061-34f2-48b3-8b9f-8da5233d6210n%40googlegroups.com

汪剑

unread,
Dec 10, 2021, 1:20:32 AM12/10/21
to openresty
ok,我试试火焰图
Reply all
Reply to author
Forward
0 new messages