1321822099 opened a new issue, #10559: URL: https://github.com/apache/apisix/issues/10559
### Current Behavior Use the officially provided 3.0.0-centos image to deploy the k8s environment. After the environment is deployed, we perform a stress test on a certain route and find that the memory keeps increasing. ### Expected Behavior The memory should be in a stable state ### Error Logs _No response_ ### Steps to Reproduce Environment deployment process: 1. Deploy in the k8s environment through the officially provided 3.0.0-centos image, using etcd storage mode. 2. Create a new service, install the plug-in proxy-rewrite:regex_uri to forward the request, and configure an upstream for this service. 3. Deploy a web service (no restrictions on language or framework). The service provides external routing service GET:/api/project/hello. A simple return is required after the api. Resp body and resp headers are required. Specific service configuration: { "name": "project-api", "upstream": { "nodes": [ { "host": "project-api-service", //an independent web service "weight": 1 } ], "type": "roundrobin", "hash_on": "vars", "scheme": "http", "pass_host": "pass" }, "plugins": { "proxy-rewrite": { "regex_uri": [ "^/api/project/(.*)", "/$1" ], "use_real_request_uri_unsafe": false } } } 4. Create a route and point the route to the service created above { "uri": "/api/project/*", "name": "project-api default rules", "desc": "Default rules, please do not modify them.", "service_id": "1", "status": 1 } Problem recurrence: 1. To perform a stress test on a certain /api/project/hello, the query parameter is required. 2. Use pmap to check the memory usage of the luajit process, and find that RSS has been growing, and after a period of time, there is no sign of decline. 3. After updating the apisix version to 3.3.0-centos, the problem is still not solved. 4. Finally, I used gdb to debug the process and found that there was an unmapped namespace with memory growth. ### Environment - APISIX version (run `apisix version`): apache/apisix:3.0.0-centos - Operating system (run `uname -a`): centos - OpenResty / Nginx version (run `openresty -V` or `nginx -V`):nginx version: openresty/1.21.4.1 - etcd version, if relevant (run `curl http://127.0.0.1:9090/v1/server_info`):docker.io/bitnami/etcd:3.5.1-debian-10-r31 - 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: notifications-unsubscr...@apisix.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org