Cetos 7 login very slow
Hi,
I have a Centos 7.2 VM and noticed that login is very slow on this, even if I login with local root account. Upon further check, it shows me some org.freedesktop.systemd1 errors and also I see lot of defunct processes, whose parent PID is 1 (systemd). Without reboot, I am not able to clean defunct processes. Is there any other way, I should be able to fix it? Any suggestions please? Code:
[root@centos-7-2 ~]# time ssh root@localhost id Thanks |
If you're connecting from a machine on the same host / network you might find that putting an entry in /etc/hosts of the target with your source client's IP address helps. Login does some IP checks and if it can't reverse resolve the IP it can "hang" for up to 30 seconds or so when attempting login.
|
I am guessing this is a systemd bug. What version of systemd are you using? Run the command:
systemctl --version Since you have defunct processes look at the output of the command: systemctl | grep 'of user'| grep 'abandoned' To delete sessions try running the command rm -rf /run/systemd/system/sessionscope To fix runtime issues try: systemctl daemon-reexec |
I had to reboot the server finally and that fixed problem
|
All times are GMT -5. The time now is 04:32 AM. |