chenglin321 commented on issue #6725: URL: https://github.com/apache/apisix/issues/6725#issuecomment-1484633091
> > > > > > 我们也发现了这个问题,之前以为是代码的问题,但是发现nginx进程实际占用的内存是非常小的,后面排查是因为写日志文件accesss.log/error.log过大,然后导致page cache会很大,因为k8s的内存统计是包括rss + buffer/cache的。 在执行执行echo "" > access.log之后发现内存是直线下降的。不知道这个问题是不是也是这个原因导致的。 > > > > > >  > > > > > > 解决办法:目前是通过log-rotate插件进行日志的滚动切割定期删除历史文件。 > > > > > > > > > > > > > > > 我们这边没有开文件日志,用的kafka-logger插件,也有泄漏问题。 > > > > > > > > > > > > 这个问题,有解决吗? > > > > > > > > > This may be due to the in-memory logs save. > > 目前发现kafka-logger这个插件在我们环境中总是会断连,而且不会重连,导致一些日志积压在内存当中。感觉像是从lru当中获取的producer已经是断连了,想要添加重连逻辑的,但是没有发现有检测连接是否正常的api。现在处理是把从lru获取client对象改成直接从新获取producer,但是之前buffer的日志会发送失败。 好的,谢谢。那我们还不一样。我这边是写一个自定义java插件,java插件的内存占用还好,openresty的内存不断增长,线上每两天realod下apisix。 - - -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
