Query uptime, memory and restart count of a service
how often has the service crashed | since when is the service running | memory usage of a systemd service | count service restarts | systemctl | service | monitoringsystemctl show php8.2-fpm -p ActiveState,ActiveEnterTimestamp,MainPID,MemoryCurrent,NRestartsPrints selected properties as Name=Value, ideal for scripts and monitoring. NRestarts counts how often systemd restarted the service because of Restart=; a rising value means repeated crashes. MemoryCurrent is the memory of the entire control group in bytes, including all child processes.
Note: MemoryCurrent shows [not set] if memory accounting is not active for the unit.
Also searched as
- how often has the service crashed
- since when is the service running
- memory usage of a systemd service
- count service restarts