Since Thursday, my Ubuntu 16.04.7 server has been extremely sluggish, even when the load is below 1.0.
apt-get update and apt-get upgrade are both extremely slow. The boot time also takes ages.
I have PHP running on the server and scripts are also taking much longer to execute, even though there are barely any requests coming in.
Output of the top results from systemd-analyze blame:
2min 11.015s apt-daily.service
1min 56.993s cloud-init-local.service
1min 12.026s console-setup.service
1min 8.095s apt-daily-upgrade.service
1min 6.282s dev-vda1.device
1min 649ms cloud-init.service
50.921s apparmor.service
50.255s cloud-config.service
44.707s cloud-final.service
32.721s mysql.service
27.685s systemd-tmpfiles-setup.service
20.327s systemd-update-utmp.service
17.572s snapd.service
11.468s boot-efi.mount
11.051s resolvconf.service
10.486s nginx.service
10.369s networking.service
10.203s certbot.service
Output of critical-chain:
Has anyone got an idea what could be causing this?
head -1
tohead -3
to show the top 3 fastest mirrors and run the command multiple times to get a more accurate reading. Edit your/etc/apt/sources.list
file to use the desired mirror instead of the default. – mchid Apr 12 '21 at 04:06