Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: In version 3.6.0, a slow memory leak phenomenon occurs. #11901

Open
wang243216388 opened this issue Jan 8, 2025 · 3 comments
Open

bug: In version 3.6.0, a slow memory leak phenomenon occurs. #11901

wang243216388 opened this issue Jan 8, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@wang243216388
Copy link

Current Behavior

During the use of version 3.6.0, it was discovered that there is a slow memory leak phenomenon, with a very small rate of increase but it keeps growing. I conducted a comparative test and observed between versions 3.6.0 and 3.8.0, and found that the memory usage in version 3.8.0 is normal, while in version 3.6.0, it continues to grow.

The image below illustrates the memory fluctuation trend of version 3.6.0.
3 6 0

The image below illustrates the memory fluctuation trend of version 3.8.0.
3 8 0

The image below displays the memory size of the worker process in version 3.6.0.
3 6 02

The image below displays the memory size of the worker process in version 3.8.0.
3 8 02

Why does the memory keep growing slightly in version 3.6.0?
How to investigate the specific content of the memory leak in version 3.6.0?

Expected Behavior

In version 3.6.0, there should be periodic memory release actions.

Error Logs

No response

Steps to Reproduce

Install versions 3.6.0 and 3.8.0 normally, use the same etcd cluster, add two routes, and perform external pressure testing with the same load.

Environment

NAME="EulerOS"
VERSION="2.0 (SP8)"
ID="euleros"
ID_LIKE="rhel fedora centos"
VERSION_ID="2.0"
PRETTY_NAME="EulerOS 2.0 (SP8)"
ANSI_COLOR="0;31"

Linux v3 4.19.36-vhulk1907.1.0.h1524.eulerosv2r8.aarch64

@github-project-automation github-project-automation bot moved this to 📋 Backlog in Apache APISIX backlog Jan 8, 2025
@wang243216388 wang243216388 changed the title bug: 3.6.0 version Memory leak phenomenon occurs slowly. bug: In version 3.6.0, a slow memory leak phenomenon occurs. Jan 8, 2025
@dosubot dosubot bot added the bug Something isn't working label Jan 8, 2025
@wklken
Copy link

wklken commented Jan 8, 2025

maybe relate to #10655

@wang243216388
Copy link
Author

maybe relate to #10655

I haven't used any plugins. Are you saying that using the Prometheus plugin could cause it?

@wang243216388
Copy link
Author

I referred to this #10614
This defect still exists in version 3.6.0 even after directly replacing the apisix/apisix/core/config_etcd.lua script with the one from version 3.8.0.
The image below shows the corresponding memory growth situation.
3 6 0 3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 📋 Backlog
Development

No branches or pull requests

2 participants