spacewander commented on issue #5092:
URL: https://github.com/apache/apisix/issues/5092#issuecomment-922242153


   First of all, we need to check if the error log is caused by the memory used 
by Prometheus is unbound or just because the default size is too small.
   
   The configuration of lua shdict is not available until 2.8, so you may need 
to modify the ngx_tpl.lua: https://github.com/apache/apisix/pull/4524
   
   If the Prometheus memory usage grows without limit, it will consume all the 
memory configurated. Otherwise, the memory usage stops growing in a level.
   
   We also need to compare the Prometheus metrics before/after the http 
request. Prometheus client is a well-known memory consumer. How many 
metrics/labels are there in the Prometheus metrics?
   
   You can also use X-Ray to diagnose the memory issue: 
https://openresty.com.cn/cn/xray/. Note that I am not the developer of X-Ray 
(it is a commercial product developed by others).


-- 
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]


Reply via email to