kamon-io / docker-grafana-graphite

Docker image with StatsD, Graphite, Grafana 2 and a Kamon Dashboard
Apache License 2.0
1.14k stars 495 forks source link

Grafana dashboard is running very slow and gets stuck #54

Open edanshalom opened 8 years ago

edanshalom commented 8 years ago

My grafana dashboard is running very slow and gets stuck occasionally. I'm running it on AWS t2.large and the CPU usage is 100%.

I guess the default configurations are not suitable for this load. This is what I see from top when refreshing the dashboard. gunicorn_django is eating my CPU every time I try to refresh/ zoom in/ zoom out etc. Any ideas what I can do to solve it? Should I increase the worker_processes in the nginx.conf? (it's set to 1)

top - 10:51:09 up 3 days, 1:07, 1 user, load average: 2.06, 1.07, 0.50 Tasks: 125 total, 3 running, 122 sleeping, 0 stopped, 0 zombie %Cpu(s):100.0 us, 0.0 sy, 0.0 ni, 0.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st KiB Mem: 8175600 total, 4283872 used, 3891728 free, 257232 buffers KiB Swap: 0 total, 0 used, 0 free. 3301996 cached Mem

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
18908 root 20 0 141860 58648 3880 R 99.9 0.7 0:05.45 gunicorn_django
18911 root 20 0 140840 58172 3916 R 99.9 0.7 0:04.42 gunicorn_django

ksingh7 commented 8 years ago

@edanshalom did you managed to find fix for this ?

hos7ein commented 7 years ago

i have same issue and fixed by add worker to gunicorn #114