You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apisix.apache.org by Guohao Wang <wa...@gmail.com> on 2023/11/01 08:42:40 UTC
apisix memory leak discuss
hi Krew
我发现你在 https://github.com/apache/apisix/issues/10392 下面回复了你也遇到了这个内存泄漏的问题.
可以创建一个 issues 详细描述一下么?
操作系统信息
APISIX version
APISIX-base version (nginx 版本)
route/upstream 的数量, 或者其他资源的数量
etcd 的版本信息
如果有如何复现的步骤是最好的.
我们提供一个 route 帮你做一些信息收集
curl http://127.0.0.1:9180/apisix/admin/routes/test -H 'X-API-KEY:
edd1c9f034335f136f87ad84b625c8f1' -X PUT -d \
'{
"uri": "/lua_memory_stat",
"plugins": {
"serverless-pre-function": {
"phase": "rewrite",
"functions" : ["return function() local mem =
collectgarbage(\"count\") ngx.say(\"the memory allocated by lua is \",
mem, \" kb\"); end"]
}
}
}'
用这个查看内存泄漏
curl http://127.0.0.1:9080/lua_memory_stat
Best Regards
guohao.wang