Hi,
I am running Grafana 8.2.2 on a virtual server (4 cores, 8 GB ram) on Arch Linux. I did not connect any datasource yet (that’s what I mean with “standalone”), but still doing the initial admin. Nevertheless, the tool is really slow. Login takes ~20 seconds. Adding a user to a team takes ~30 seconds. What can I do to analyze and improve the situation?
Thanks, mipi
BTW: gzip is already enabled but didn’t improve the performance much
Thanks for the hints.
1.: The server is hosted by a generic hosting provider.
2.: I have nginx running serving 3 static web sites (not much traffic) and a docker container. There, I do not observe slow performance,
3.: No, it’s not self-hosted.
4.: I used htop. Doesn’t show any problems wrt. memory usage or CPU load.
5.: Logging in via SSH takes 1-2s → OK. But I have a www domain pointing to the Grafana instance. Normally, I access the Grafana instance why that domain, and then I observe a slow performance. When I use the IP address instead, the response time is OK. Thus, it seems to be DNS. Interesting! Any idea why Grafana is that slow in that case? Just curious.
I found the root cause - a stupid thing: My server could not resolve localhost. After adding 127.0.0.1 localhost
to /etc/hosts the problem was gone