Analyze boot time and find slow services
why is the server booting so slowly | measure boot time linux | which service slows down startup | systemd-analyze blame | systemd-analyze | boot | performancesystemd-analyze && systemd-analyze blame --no-pager | head -20systemd-analyze prints how long the kernel and userspace took during the last boot, and blame lists services by their startup time. Useful when a server stays unreachable for a long time after a restart. A single service with a very high time is often waiting for a network drive or a timeout.
Note: Long startup times do not always mean a delay, because many services start in parallel. systemd-analyze critical-chain shows the chain that actually holds things up.
Also searched as
- why is the server booting so slowly
- measure boot time linux
- which service slows down startup
- systemd-analyze blame