You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/11/03 03:19:02 UTC

[GitHub] [apisix] suninuni commented on issue #7949: bug: As route and stream keep creating and deleting, the memory keeps growing

suninuni commented on issue #7949:
URL: https://github.com/apache/apisix/issues/7949#issuecomment-1301597993

   > The latest prometheus lib would make use of the lru characteristic of the shared dict to evict the oldest keys, so no need to worry about it.
   
   I replace the latest prometheus lib files (`/usr/local/apisix/deps/share/lua/5.1/prometheus.lua` `prometheus_keys.lua` `prometheus_resty_counter.lua`) in apisix 2.15.0 image from https://github.com/knyar/nginx-lua-prometheus master branch.
   
   But when the lua_shared_dict(10m for prometheus-metrics) is used up, there whill still have errors like `*27324521 [lua] prometheus.lua:953: log_error(): Unexpected error adding a key: no memory while logging request,`. It looks like prometheus lib doesn't evict the oldest keys.
   


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org