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
root@localhost's password:
uid=0(root) gid=0(root) groups=0(root)
real 0m27.948s
user 0m0.013s
sys 0m0.002s
[root@centos-7-2 ~]# service nscd status
Redirecting to /bin/systemctl status nscd.service
Failed to get properties: Activation of org.freedesktop.systemd1 timed out
[root@centos-7-2 ~]# service nscd restart
Redirecting to /bin/systemctl restart nscd.service
Failed to restart nscd.service: Activation of org.freedesktop.systemd1 timed out
[root@centos-7-2 ~]#
[root@centos-7-2 ~]# cat /etc/ssh/sshd_config | grep -i usedns
UseDNS no
[root@centos-7-2 ~]# service sshd status
Redirecting to /bin/systemctl status sshd.service
Failed to get properties: Activation of org.freedesktop.systemd1 timed out
[root@centos-7-2 ~]#
[root@centos-7-2 ~]# ps -ef | grep defunct | wc -l
5440
[root@centos-7-2 ~]#
I am not sure if these are two different problems, so both are related to each other
Thanks