LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-18-2018, 10:06 AM   #1
danjde
Member
 
Registered: Jun 2014
Posts: 36

Rep: Reputation: Disabled
Lightbulb Unable to monitor cpu usage on VPS


Hi Friends,
on one of mine production VPS Debian Jessie (virtualization based on KVM),

Quote:
Linux server 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt25-2+deb8u3 (2016-07-02) x86_64 GNU/Linux

since a few weeks, I realized that I can not view the cpu(s) usage, for example from "top
I've installed "htop" and I get inconsistent information:

https://ibb.co/doyzNe

Running "watch -n1 cat /proc/stat" obtain:

Code:
cpu  37486458 0 2008795 1365458555 14850239 626 378567 173447888857 0 0
cpu0 18006783 0 740960 322104780 6576053 626 278439 788515750535 0 0
cpu1 7702044 0 494503 344716616 3935670 0 43854 789701599039 0 0
cpu2 6453449 0 417163 348017606 2503787 0 28982 935384686954 0 0
cpu3 5324181 0 356168 350619552 1834727 0 27291 1349194667069 0 0
intr 1804989053 5 14 0 0 0 0 3 0 1 0 1028772 0 584 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 5 461047849 531 0 36785126 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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530969547
processes 430988
procs_running 1
procs_blocked 0
softirq 1872853504 1 494345124 93 640007548 0 0 2951 225925903 532225 512039659
do you have any suggestions or idea why?

Many many thanks!

Davide

Last edited by danjde; 08-18-2018 at 10:15 AM.
 
Old 08-18-2018, 10:24 AM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Suggestions for what? Ideas for what?

Explain how top worked then didn't for you please. Thanks,.

rtop
30 Linux System Monitoring Tools Every SysAdmin Should Know
try the sar utility in the sysstat package
 
Old 08-31-2018, 02:01 AM   #3
olidev
LQ Newbie
 
Registered: Jul 2018
Location: Illinois, US
Posts: 11

Rep: Reputation: Disabled
htop commands work fine for me. I am hosting PHP app on DigitalOcean. I didn't installed the htop as it was preinstalled. You shouldn't face any difficulty with this. This is not something that complicated. It is a simple ssh command. Maybe you didn't installed it correctly?

Last edited by olidev; 08-31-2018 at 02:02 AM. Reason: fixed grammar
 
Old 09-01-2018, 04:50 AM   #4
danjde
Member
 
Registered: Jun 2014
Posts: 36

Original Poster
Rep: Reputation: Disabled
I don't know why but a VPS reboot has solved the issue. Now "top" or htop" (and others) workds great!

Some kernel functionality that did not start correctly?!?
 
Old 09-01-2018, 05:37 PM   #5
marcela
LQ Newbie
 
Registered: Sep 2018
Posts: 2

Rep: Reputation: Disabled
Unable to monitor cpu usage on VPS

Basically, there are two steps that need to be considered. Use the command top to see the server along with w and uptime commands. The top is important to monitor the server load and by the command c, you can see CPU usage. [removed] also uses this commands for its own AOL server.

Last edited by rtmistler; 09-02-2018 at 11:56 AM. Reason: Removed advertising
 
Old 09-02-2018, 11:57 AM   #6
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
@Marcela,

The forum rules do not permit advertising. Please visit http://www.linuxquestions.org/advertising/ for more information on advertising. Feel free to contact the forum admin if you have any questions about this policy.
 
  


Reply

Tags
cpu, top, vps



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
Monitor CPU / Memory usage via SNMP Mathieu AIX 2 11-04-2009 04:41 PM
script to monitor memory and cpu usage s_linux SUSE / openSUSE 3 07-23-2009 02:03 PM
How to monitor CPU usage of domains on a VPS lumpysimon Linux - Newbie 1 02-08-2008 03:07 PM
Can we monitor CPU & Memory usage of Windows boxes through RRDtool on Linux (RHEL 3)? sandeepgupte Linux - Software 1 09-19-2007 10:35 AM
Need Monitor the CPU, Memory and Disk Usage srikanthrao_d Linux - Software 2 12-28-2005 08:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:46 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