Baoyuantop commented on issue #11680:
URL: https://github.com/apache/apisix/issues/11680#issuecomment-4037377019

   The following steps can be used to further pinpoint the problem:
   
   1. Verification: Set the environment variable MALLOC_ARENA_MAX=2 in the 
container, re-run the load test, and observe changes in memory behavior.
   
   2. Verification: Manually trigger `collectgarbage()` via the Control API 
POST /v1/gc endpoint and observe whether Lua layer memory usage decreases.
   
   3. Monitoring: Compare the return value of `collectgarbage("count")` with 
the container's RSS feed to confirm that the difference mainly originates from 
the C layer.
   
   4. Optional Optimization: Configure `metadata.max_pending_entries` and a 
smaller `buffer_duration` for `loki-logger` to reduce temporary buffering.


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