I am trying to debug OOM error that I get in my application using openresty. I see that adding collectgarbage("collect") followed by collectgarbage("count") in my lua scripts might be one of the possibilities to debug the issue. But does collectgarbage("count") count memory consumed by lua_shared_dict
as well?
If not, what would be alternative to check memory consumed by lua_shared_dict
(s)?
Suggestions to debug OOMs in openresty app are also appreciated.