LinuxQuestions.org
Help answer threads with 0 replies.
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 01-04-2018, 07:30 AM   #1
pradeepspa
Member
 
Registered: Oct 2015
Posts: 79

Rep: Reputation: Disabled
Centos VM acting slow - Reboot Fixes it


Folks,

I am recently experiencing the issue where the cenots vm i am running is started acting slow.

Symptoms:
1. ssh takes more than usual time to login (10seconds)
2. Log messages are not showing as continous flow rather bunch of messages at a time then seconds of hold.
3. editing the file and saving it takes more than expected time.

The above symptoms look like something is causing the system to act sluggish.
Where , CPU load and memory are consumed less than the threshold.

Quote:
top - 13:27:43 up 9 days, 6:18, 2 users, load average: 0.79, 0.70, 1.02
Tasks: 250 total, 1 running, 248 sleeping, 0 stopped, 1 zombie
Cpu0 : 19.1%us, 7.1%sy, 0.0%ni, 68.9%id, 4.4%wa, 0.0%hi, 0.5%si, 0.0%st
Cpu1 : 34.4%us, 20.0%sy, 0.0%ni, 44.0%id, 1.2%wa, 0.0%hi, 0.3%si, 0.0%st
Cpu2 : 19.1%us, 7.3%sy, 0.0%ni, 68.6%id, 4.5%wa, 0.0%hi, 0.5%si, 0.0%st
Cpu3 : 31.3%us, 13.9%sy, 0.0%ni, 53.3%id, 1.2%wa, 0.0%hi, 0.3%si, 0.0%st
Cpu4 : 18.9%us, 7.6%sy, 0.0%ni, 68.5%id, 4.3%wa, 0.2%hi, 0.4%si, 0.0%st
Cpu5 : 31.2%us, 13.2%sy, 0.0%ni, 54.1%id, 1.1%wa, 0.0%hi, 0.3%si, 0.0%st
Cpu6 : 19.1%us, 8.6%sy, 0.0%ni, 67.6%id, 4.3%wa, 0.0%hi, 0.5%si, 0.0%st
Cpu7 : 31.9%us, 14.8%sy, 0.0%ni, 51.8%id, 1.1%wa, 0.0%hi, 0.3%si, 0.0%st
Mem: 20463368k total, 18206244k used, 2257124k free, 482316k buffers
Swap: 16498680k total, 92676k used, 16406004k free, 13740840k cached
Quote:
[root@nms ~]# free -g
total used free shared buffers cached
Mem: 19 17 2 0 0 13
-/+ buffers/cache: 3 15
Swap: 15 0 15

The issue seems to resolve when i perform reboot however it occurs after a span of time(few days).

Could someone guide me where to look to troubleshoot this issue?
 
Old 01-04-2018, 11:02 AM   #2
scasey
Senior Member
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.6
Posts: 3,620

Rep: Reputation: 1203Reputation: 1203Reputation: 1203Reputation: 1203Reputation: 1203Reputation: 1203Reputation: 1203Reputation: 1203Reputation: 1203
Quote:
Originally Posted by pradeepspa View Post
Could someone guide me where to look to troubleshoot this issue?
You need to look at what programs/processes are running when this condition is happening. That should show just below what you posted from top. By default I think top sorts by cpu percent, which should equate to the high usage you're seeing.
 
Old 01-04-2018, 04:02 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 19,146

Rep: Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918
1 zombie

"Zombies are basically the leftover bits of dead processes that havenít been cleaned up properly. A program that creates zombie processes isnít programmed properly Ė programs arenít supposed to let zombie processes stick around." https://www.howtogeek.com/119815/htg...cess-on-linux/

Also I guess it could be an issue with the whole vm program, host system deal. Might look there too.
 
Old 01-04-2018, 08:22 PM   #4
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 4,270

Rep: Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943
Zombies consume one (1) slot in the process table and nothing else -- no CPU time, no memory. All other resources have been released. But, the existence of a zombie might indicate that it's parent process is caught in a loop or otherwise unresponsive.
 
Old 01-04-2018, 08:44 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 19,146

Rep: Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918
I agree it isn't the most obvious issue but I like to weed out the first thing I see.
 
Old 01-04-2018, 10:19 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 18,062

Rep: Reputation: 2896Reputation: 2896Reputation: 2896Reputation: 2896Reputation: 2896Reputation: 2896Reputation: 2896Reputation: 2896Reputation: 2896Reputation: 2896Reputation: 2896
If the guest doesn't show symptoms, look at the host.

And use [code] tags not [quote] when posting output - you can edit the initial post to make it more readable.
 
Old 01-05-2018, 08:31 AM   #7
pradeepspa
Member
 
Registered: Oct 2015
Posts: 79

Original Poster
Rep: Reputation: Disabled
Thanks for the response.

I dont find any zombie process running on the server.

Quote:
ps awx | grep -i defunct
17489 ? Zs 0:00 [sh] <defunct>
31643 pts/2 S+ 0:00 grep -i defunct
Here is the top output

Quote:
top - 14:30:20 up 10 days, 7:20, 4 users, load average: 1.15, 1.21, 1.25
Tasks: 310 total, 2 running, 307 sleeping, 0 stopped, 1 zombie
Cpu0 : 18.2%us, 6.8%sy, 0.0%ni, 70.2%id, 4.3%wa, 0.0%hi, 0.5%si, 0.0%st
Cpu1 : 32.4%us, 18.5%sy, 0.0%ni, 47.6%id, 1.2%wa, 0.0%hi, 0.3%si, 0.0%st
Cpu2 : 18.2%us, 6.9%sy, 0.0%ni, 70.0%id, 4.4%wa, 0.0%hi, 0.5%si, 0.0%st
Cpu3 : 29.7%us, 12.9%sy, 0.0%ni, 55.9%id, 1.2%wa, 0.0%hi, 0.3%si, 0.0%st
Cpu4 : 18.1%us, 7.2%sy, 0.0%ni, 70.0%id, 4.2%wa, 0.2%hi, 0.4%si, 0.0%st
Cpu5 : 29.7%us, 12.3%sy, 0.0%ni, 56.7%id, 1.1%wa, 0.0%hi, 0.3%si, 0.0%st
Cpu6 : 18.2%us, 8.1%sy, 0.0%ni, 69.0%id, 4.2%wa, 0.0%hi, 0.5%si, 0.0%st
Cpu7 : 30.3%us, 13.8%sy, 0.0%ni, 54.5%id, 1.1%wa, 0.0%hi, 0.3%si, 0.0%st
Mem: 20463368k total, 18353372k used, 2109996k free, 530932k buffers
Swap: 16498680k total, 27208k used, 16471472k free, 15577944k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
31195 nagios 20 0 230m 173m 2176 R 99.4 0.9 9:36.70 nagios
31969 root 20 0 168m 17m 2560 S 32.6 0.1 0:00.20 perl
17740 root 20 0 836m 115m 3668 S 27.7 0.6 91:48.03 nagflux
31253 apache 20 0 193m 92m 3924 S 1.6 0.5 0:01.26 perl
31870 root 20 0 15168 1404 936 R 1.6 0.0 0:00.13 top
1 root 20 0 19364 1456 1180 S 0.0 0.0 0:40.62 init
2 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kthreadd
3 root RT 0 0 0 0 S 0.0 0.0 7:37.97 migration/0
4 root 20 0 0 0 0 S 0.0 0.0 11:32.88 ksoftirqd/0
5 root RT 0 0 0 0 S 0.0 0.0 0:00.00 stopper/0
6 root RT 0 0 0 0 S 0.0 0.0 1:16.56 watchdog/0
7 root RT 0 0 0 0 S 0.0 0.0 0:56.01 migration/1
8 root RT 0 0 0 0 S 0.0 0.0 0:00.00 stopper/1
9 root 20 0 0 0 0 S 0.0 0.0 0:28.13 ksoftirqd/1
10 root RT 0 0 0 0 S 0.0 0.0 0:05.62 watchdog/1
11 root RT 0 0 0 0 S 0.0 0.0 7:23.80 migration/2

Apologise that I used "Quoate" tag again, for some reason the "code" tag is not visible to me.
 
Old 01-05-2018, 07:53 PM   #8
scasey
Senior Member
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.6
Posts: 3,620

Rep: Reputation: 1203Reputation: 1203Reputation: 1203Reputation: 1203Reputation: 1203Reputation: 1203Reputation: 1203Reputation: 1203Reputation: 1203
you can type [CODE][\CODE] or use the # button on the toolbar...
Code:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
31195 nagios 20 0 230m 173m 2176 R 99.4 0.9 9:36.70 nagios
31969 root 20 0 168m 17m 2560 S 32.6 0.1 0:00.20 perl
17740 root 20 0 836m 115m 3668 S 27.7 0.6 91:48.03 nagflux
31253 apache 20 0 193m 92m 3924 S 1.6 0.5 0:01.26 perl
Those first three jobs are hammering the CPU. Do you know what they're doing? I'm not familiar with either nagios or nagflux, and the perl entry could be doing anything...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Network device goes down, reboot machine fixes it. brian_cs Linux - Networking 1 05-23-2012 05:13 PM
Text editors acting very slow win32sux Linux - Software 5 01-02-2008 02:18 AM
most files disappear from filesystem - reboot fixes bluikz Linux - Server 4 12-19-2007 08:19 PM
loopy skippy sound fixes itself with reboot from win2k randomsel Slackware 3 10-03-2007 06:30 PM
2.6.4 acting really slow and unresponsive citrus Linux - General 8 03-24-2004 09:04 PM

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

All times are GMT -5. The time now is 05:35 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration