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

why the apisix-dashboard take so much cpu and memory #2935

Open
Linindoo opened this issue Mar 8, 2024 · 11 comments
Open

why the apisix-dashboard take so much cpu and memory #2935

Linindoo opened this issue Mar 8, 2024 · 11 comments
Labels
bug Something isn't working

Comments

@Linindoo
Copy link

Linindoo commented Mar 8, 2024

Issue description

image It`s is understandable to take some memory,but why it nend so much cpu resource?

Expected behavior

it shoud take a little cpu just when used,but now it`s strange

How to Reproduce

I can`t reproduce it

Screenshots

No response

Environment

  • apisix version (cmd: apisix version): 3.2.0
  • OS (cmd: uname -a): Linux gateway 3.10.0-1160.83.1.el7.x86_64 Init Dashboard & add some features #1 SMP Wed Jan 25 16:41:43 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
  • OpenResty / Nginx version (cmd: nginx -V or openresty -V): openresty/1.21.4.1
  • etcd version, if have (cmd: run etcd --version): 3.5.4
  • apisix-dashboard version, if have: 3.0.0

Additional context

No response

@Linindoo Linindoo added the bug Something isn't working label Mar 8, 2024
@imtiaz-rahi
Copy link

I am also worried about apisix-dashboard using constant CPU, even when not in use. We have setup apisix using docker. The apisix-dashboard -> manager-api, process is constantly consuming above 8% CPU !!!

Screenshot from 2024-03-14 14-12-04

@imtiaz-rahi
Copy link

@Linindoo can you please provide output (screenshot) of top / htop / btop for the manager-api of apisix-dashboard.

@Linindoo
Copy link
Author

sorry,The process has already been restarted

@Linindoo can you please provide output (screenshot) of top / htop / btop for the manager-api of apisix-dashboard.

@jinjianming
Copy link

I also found that the use of memory was growing steadily, and I felt that there was a memory leak

image

@jinjianming
Copy link

@Linindoo您能否提供 apisix-dashboard 的 manager-api 的 top / htop / btop 的输出(屏幕截图)。

image

@imtiaz-rahi
Copy link

Definitely there are serious issues in the apisix-dashboard application.
Even when the dashboard portal not opened in browser by any user, it is consuming CPU constantly. Also, from @jinjianming report, we can use memory usage also increasing over time.

Will the devs please look into this.

@hanqingwu
Copy link

try to apply this patch ?
#2920

@jinjianming
Copy link

try to apply this patch ? #2920

Is there a plan for this? When can I have a Docker image

@jinjianming
Copy link

I have deployed this repair patch, but it is not working well as the memory is still floating up
image

@hanqingwu
Copy link

I think maybe we should watch more time , because 20MB is so small sample

@jinjianming
Copy link

我想也许我们应该多看一些时间,因为20MB的样本太小了

ok

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
None yet
Development

No branches or pull requests

4 participants