apisix icon indicating copy to clipboard operation
apisix copied to clipboard

bug: The "ext-plugin-pre-req" plugin is causing excessive memory usage

Open wodingyang opened this issue 1 year ago • 0 comments

Current Behavior

After communicating with the Java program using the "ext-plugin-pre-req" plugin, it was found that if the traffic is high, the memory will continue to grow until it is exhausted. Even if the traffic decreases, the memory will not be automatically released. Only by performing operations such as reload can the memory be cleared. This situation cannot be reproduced in stress testing; it only occurs in production with real calls. It is suspected that the issue is caused by caching based on real user IP addresses or other parameters, which are not being released properly. Since you are not a C developer and therefore cannot delve deeply into the underlying cause, and after analyzing the Lua plugin code no issues were found

Expected Behavior

No response

Error Logs

image image

Steps to Reproduce

1、Running Apache APISIX version 2.15.0. 2、Configure the route and enable the ext-plugin-pre-req plugin. 3、Monitor the memory usage.

Environment

  • APISIX version (run apisix version):2.15.0
  • Operating system (run uname -a):Linux redis1 3.10.0-693.el7.x86_64

wodingyang avatar Sep 26 '24 07:09 wodingyang