pavankumar-siripurapu opened a new issue, #11456:
URL: https://github.com/apache/apisix/issues/11456

   ### Current Behavior
   
   This is a follow-up to a [help 
request](https://github.com/apache/apisix/issues/11442) that was raised a few 
days ago and discussed with @juzhiyuan. We attempted to resolve the issue by 
disabling the logging of request bodies in the file-logger plugin, but this did 
not reduce memory usage. Surprisingly, disabling the Prometheus plugin resulted 
in a significant reduction in memory usage.
   
   
![image](https://github.com/user-attachments/assets/e131dc0f-09ea-4894-878b-1d1e45995f74)
   
   
   However, without the Prometheus plugin enabled, it becomes challenging for 
us to track the metrics of APISIX. Therefore, we re-enabled the plugin and 
encountered the initial issue again. After careful consideration of the extra 
labels we added, we made some changes and deployed them, which resulted in a 
memory reduction of 70-80%.
   
   
![image](https://github.com/user-attachments/assets/b1f84c53-8dc9-4731-9cce-276630803eb5)
   
   
![image](https://github.com/user-attachments/assets/879227d7-d818-44be-af9d-210bd8bea96e)
   
   
   We also want to enable the URI label to obtain metrics based on URI. 
Additionally, we observed that the memory does not decrease when there is no 
traffic with the Prometheus plugin enabled. We encountered difficulties 
implementing the suggested change in the helm configurations mentioned in this 
link: 
https://github.com/apache/apisix/blob/release/3.8/conf/config-default.yaml#L175-L177.
 It would be greatly appreciated if you could provide a sample of how to 
integrate this change with helm configurations.
   
   ### Expected Behavior
   
   _No response_
   
   ### Error Logs
   
   _No response_
   
   ### Steps to Reproduce
   
   1. Run APISIX with helm chart from api7 on EKS.
   2. enable the prometheus plugin with extra labels as below 
   <img width="420" alt="image" 
src="https://github.com/user-attachments/assets/3e7d00b8-a3d6-4e72-bb73-cccdc21c2322";>
   
   3. Run a performance test with around 3000~4000 requests with different 
URIs.the 
   
   ### Environment
   
   - APISIX version (run `apisix version`):
   - Operating system (run `uname -a`):
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
   - etcd version, if relevant (run `curl 
http://127.0.0.1:9090/v1/server_info`):
   - APISIX Dashboard version, if relevant:
   - Plugin runner version, for issues related to plugin runners:
   - LuaRocks version, for installation issues (run `luarocks --version`):
   


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