suninuni opened a new issue #5092: URL: https://github.com/apache/apisix/issues/5092
### Issue description When the prometheus global plugin is enabled, the memory of apisix continues to grow abnormally. ### Environment - apisix version (cmd: `apisix version`): 2.7 ### Steps to reproduce - deploy httpbin service in k8s ([step in apisix-inrgess-controller](https://apisix.apache.org/docs/ingress-controller/practices/proxy-the-httpbin-service)) - enable prometheus as global rule and set perfer_name as true (lua_shared_dict.prometheus-metrics is 10m) - mock http request throw ab with high concurrency `ab -n 2000000 -c 2000 http://xxxxx` ### Actual result - memory keep growing  ### Error log - `*45077733 [lua] prometheus.lua:860: log_error(): Unexpected error adding a key: no memory while logging request,` ### Expected result - The memory should not continue to grow. - Prometheus should release a part of the memory allocated to it after it is used up to avoid continuous errors. -- 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]
