LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-01-2023, 07:15 PM   #1
james000
Member
 
Registered: Sep 2018
Posts: 143

Rep: Reputation: 2
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
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

Last edited by james000; 03-01-2023 at 07:21 PM.
 
Old 03-02-2023, 07:45 AM   #2
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,481

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
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.
 
Old 03-02-2023, 11:17 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,748

Rep: Reputation: 5927Reputation: 5927Reputation: 5927Reputation: 5927Reputation: 5927Reputation: 5927Reputation: 5927Reputation: 5927Reputation: 5927Reputation: 5927Reputation: 5927
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
 
Old 03-02-2023, 06:49 PM   #4
james000
Member
 
Registered: Sep 2018
Posts: 143

Original Poster
Rep: Reputation: 2
I had to reboot the server finally and that fixed problem
 
  


Reply

Tags
centos 7



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[CetOS server] Multiple problems ulkoma Linux - Newbie 4 09-28-2012 08:49 PM
Some commands not running in primary nameserver using cetos 5.6 SarahGurung Linux - Newbie 16 10-17-2011 06:56 AM
qt4 designer not starting on Cetos 5 tomtom1 Linux - Software 2 06-22-2011 01:40 AM
CetOS xen, " xend: command not found" slashtoe Linux - Newbie 2 06-01-2009 06:03 PM
A very very very very big problem!! Elbryan Linux - Software 2 09-23-2005 05:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration