<div dir="ltr">Okay, CentOS user here, please don't kill me right away.<div><br></div><div>I believe I'm experiencing this same bug on CentOS 7 and, after months of bashing my head into the wall while in the meantime switching servers, server providers and even switching from bare metal to virtualized, I think I've found the cause, as well as a workaround.</div><div>First off, at least on my systems, the issue seems to occur on servers with lots of users and/or logins/login attempts.</div><div>In my case I have about 20 users running 2 cron jobs each every minute, resulting in ~40 simultaneous logins every minute.</div><div>I heard from someone else that they experienced the same problem when receiving many external (unsuccessful?) login attempts.</div><div><br></div><div>The bug seems to get triggered shortly after systemd updates for me.</div><div>When it happens, it seems systemd-logind ends up in a restart loop, causing it to slow down logins and consume 100% CPU while initializing.</div><div>It used to be sufficient to restart a load of services like mentioned earlier in this thread, but eventually this stopped working too.</div><div><br></div><div>Looking deeper into the logs, this line stands out: </div><div><br>systemd-logind.service watchdog timeout (limit 1min)!<br></div><div><br></div><div>It seems like the restart loops are caused by the Systemd watchdog killing systemd-logind because it takes too long.</div><div><br></div><div>I've increased the WatchdogSec limit in the systemd-logind.service file to 5 minutes and reloaded/restarted systemd-logind. It consumed 100% CPU for slightly over a minute and then started behaving as it should again.</div><div><br></div><div>Not sure why it would take over a minute to start, but at least for me this allows me to work around the issue.</div><div><br></div><div>I don't know for sure if this is the same issue as on Debian, but as this thread seems to have come to a standstill with no fix since 2014, and as it helped me pinpoint the issue, I thought I'd share my findings here.</div><div><br></div><div><br></div><div>Sebastiaan</div></div>