Slow virtual machine list #21225
Replies: 9 comments 4 replies
-
Yes, cockpit-machines feels quite slow when "Loading resources". I'll have a look. |
Beta Was this translation helpful? Give feedback.
-
The slowness is far away after logging in from my and Kleg's PC at home (we live 150 km apart). I am 100 km from the data center, my colleague is 50 km from the data center. The first loading of the list after login takes time, but every subsequent loading of the list is already instantaneous. But as soon as I log out and log in again, it takes a long time again. "next load" meant switching to another tab in the cockpit and returning to the virtual servers tab. Yes, that meant logging out and logging in as a user or root user in the cockpit. We restart the server only sometimes after an update, which takes approx. once a year. However, we tried the update to see if it would speed up loading. After the update, we rebooted the server and immediately after the reboot, the list of servers loaded quickly, but that only lasted a while, after a while the list started to be slow again. I tried removing the surrounding hosts from the cockpit and logging in as root instead of user. And the problem persists. It takes a long time to load the list for the first time after logging in. every other load is now instant until I log out and log in again, when the initial load of the list takes a long time again. |
Beta Was this translation helpful? Give feedback.
-
As I already wrote virsh commands are immediate. I try this:
Result:
|
Beta Was this translation helpful? Give feedback.
-
Ok, so looks like the network is not to blame. I think we have to do some profiling in Cockpit itself. Please do this:
Attaching them here is fine if you are comfortable with that, or email to Thanks! |
Beta Was this translation helpful? Give feedback.
-
Sorry for the delay in responding. I understand your concerns. I assure you that I used the terms inside the web UI cockpit. I have now sent you what you requested by email. |
Beta Was this translation helpful? Give feedback.
-
I may have some important news for you. On all 3 of our servers, where loading the list (the first time the page loads after logging in) was taking several minutes, I ran a single command that fixed it. On all 3 servers, the server list now loads in seconds at most, not minutes. The mysterious command that fixed it: systemctl restart libvirt-dbus However, I'm sure this is only a temporary solution. The last time the server list loaded quickly after a complete reboot was for about 1-2 weeks, then it started to be too slow again. How can I help to fix the next version? I am willing and able to send you by email any logs you may want. |
Beta Was this translation helpful? Give feedback.
-
Oh, interesting! So a long running libvirt-dbus starts to get slow. I will investigate a bit how it behaves. I think it might be designed to timeout and quit on its own, and then get restarted automatically when a DBus request comes in from a client. Do you keep Cockpit open permanently? That might prevent libvirt-dbus from ever timing out on its own. In any case, can you watch libvirt-dbus a bit? Does it consume more and more memory over time, for example? I am sure the libvirt people will be interested in your observations. |
Beta Was this translation helpful? Give feedback.
-
In the mean time, restarting libvirt-dbus (and maybe reloading Cockpit in the browser) from time to time should be harmless. But it's certainly annoying. |
Beta Was this translation helpful? Give feedback.
-
Can you please send me a script that I can set up as an automatic task that will collect the required memory consumption information for you? My logs look like this:
|
Beta Was this translation helpful? Give feedback.
-
Hello,
while using the Cockpit I ran into a problem with the list of virtual machines loading slowly. The update didn't help. I read in the discussions that Cockpit has a limit for managing 20 machines. Can you please confirm if this limit actually exists? I couldn't find it directly in the documentation. If so, is it possible to somehow increase or optimize it? He needs to manage up to 60 virtual servers in the cockpit, and we don't want to wait for tens of seconds to load the list of virtual servers.
This problem of virtual server list loading too slowly only occurs when the list is loaded for the first time after login. Every next load is already immediate. I am sending screenshots of what it looks like to log out and log in again on the screenshots attached to this thread as attachments.
BTW: It loads slowly for us even on a server where there are only 19 VMs running + 2 VMs turned off.
journalctl -u cockpit:
writes only cockpit-tls: gnutls_handshake failed: A TLS fatal alert, which I associate with untrusted self-signed
journalctl -u libvirtd:
-- No entries --
The event log says this:
Sample stat:
Does anyone have experience with multiple VMs in the cockpit please? Also, does the VM list take a long time to load? What could it be and how to solve it?
Thank you for your help.
Beta Was this translation helpful? Give feedback.
All reactions