3 ms·
> I don't have a great way to pull out sshd specifically If it's using systemd, try systemctl status sshd If CPU accounting is turned on, you'll see how
by 5e92cb50239222b 4y ago
> I don't have a great way to pull out sshd specifically
If it's using systemd, try
systemctl status sshd
If CPU accounting is turned on, you'll see how much CPU time was used by sshd, plus when it was last restarted, which at least gives you something to work with.
If not, you can enable it with:
systemctl edit sshd
then adding:
[Service]
CPUAccounting=yes
and restarting the daemon.
- GekkePrutser 4y agoThis is really useful, thanks!
- akerl_ 4y agoTIL! Thanks for sharing
- loeg 4y agoTIL about systemctl edit, thanks. Note to others: if you want to override an existing setting, rather than just add new settings, you'll need to use 'systemctl edit --full'.