Questions tagged [top]
top is a Unix/Linux/BSD program to show what processing are running. It can show the top users of CPU or memory.
291
questions
0
votes
1
answer
30
views
Unknown process on Centos 7 VPS "sysnetd" using lots of cpu
So I cant seem to find any information ANYWHERE on what this process, "sysnetd", does. I've run LSOF etc but nothing seems to provide any info I know what to do with. The /proc/pid folder ...
0
votes
0
answers
16
views
How to track down CPU usage, as top is not showing any details of this usage?
I'm operating a VPS and the admin console shows constant 90%+ CPU usage even though there are no applications running as such. I attempted to track this down via top but it just increased the mystery ...
0
votes
1
answer
63
views
lsb_release called every few seconds
I have an odroid XU4 running the manufacturer-provided minimal Ubuntu 18.04. Every few seconds (it's not really consistent, but think between 5 and 30) I get a call to lsb_release. Sometimes it gets ...
0
votes
0
answers
61
views
High I/O wait in apache tomcat server
Facing high I/O wait in apache tomcat server when the load increases.
Suspecting disk I/O is less when tomcat is running however. disk IO seems drops drastically when tomcat is running along with the ...
2
votes
2
answers
407
views
100% CPU usage reported, but no processes using the CPU
I am running Debian 10 (kernel 4.19.0-18-amd64) on bare metal and I have recently noticed strange CPU usage.
Screenshot of htop, sorted by CPU%
Screenshot of top, sorted by CPU%
As you can see, 100% ...
0
votes
1
answer
50
views
Centos 7 server performance problems. High load
I have a Centos 7 VPS at HostGator that has been very slow lately. HostGator have not been overly helpful in diagnosing the problem, insisting that everything is ok.
The server is a 4 core VPS with ...
0
votes
1
answer
78
views
How to view the vhost associated with an apache process
Using the "top" command (or a similar command) in Linux, is there anyway to show the vhost that an apache process is associated with in /var/www/html? I have 250 websites on a linux server, ...
0
votes
1
answer
322
views
When using atop as a systemd service it only runs and logs to file once
I am on CentOS 7 and using atop v2.6.0
If I run atop manually with the following command everything runs as expected and the log is written to every 10 seconds:
/usr/bin/atop -w /var/log/atop/...
0
votes
1
answer
115
views
Why atop shows high CPU but sum of individual processes %CPU far smaller?
How can the sum of processes' CPU-% usage be lower than the total CPU load, according to atop and top, please?
I have a CPU reaching very high load (87%, for several hours) even though the sum of the ...
2
votes
2
answers
5k
views
Identify processes running inside Docker, in Process List
I realize that processes that run inside Docker containers appear on the hosts' process list:
# ps aux | grep mariadb
root 12486 0.0 0.0 112812 976 pts/0 S+ 14:47 0:00 grep --color=auto ...
0
votes
0
answers
26
views
Where is my memory being consumed? [duplicate]
I have a Ubuntu 20.04 server which is reporting relatively low free RAM:
top - 11:28:31 up 5 days, 20:12, 3 users, load average: 0.18, 0.26, 0.27
Tasks: 268 total, 1 running, 267 sleeping, 0 ...
0
votes
1
answer
85
views
Which one is the cache value in the output of top?
On the book I'm reading, DevOps Troubleshooting, it says that the last value in the swap line is the memory used for file caches (yellow) in Linux so subtracting it to the used memory (green) gives ...
0
votes
1
answer
287
views
Centos 7 - High Load, low CPU, low IO wait, no processed maked as D
I've got a CentOS 7 VM which seems to be stuck with quite high load (8-10). CPU usage is around 25%, there is no IO wait and there are no processes marked as D in top. I've been looking around as much ...
0
votes
1
answer
2k
views
My server has a high usage of buff/cache RAM?
Recently I saw that my server Ubuntu 18.04 LTS has a high usage of buff/cache memory.
free -mh
total used free shared buff/cache available
Mem: 7.8G ...
0
votes
1
answer
116
views
Number of virtual cores + how to know the right value
from lscpu we get the following
lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 48
On-line CPU(s) list: 0-47
...
0
votes
1
answer
139
views
hot added vCPU for linux not used fully in top command
just recently we started to see high CPU pressure on one of our machines.
All our machines are running Linux Debian and we use vmware under the hood.
We have hot added new CPUs and they're online in ...
0
votes
1
answer
379
views
Is running a script a process? [closed]
I run ./install.sh and I tried to background it to be able to close the ssh session.
But after running bg the process is again outputting to the terminal.
Also, I don't see anything with jobs.
...
0
votes
1
answer
42
views
Load is 4000, CPU flatlined, remote reboot does nothing
I have a Debian 9 server and the load is over 4000.
"top" claims there are 18,132 processes sleeping.
Initially, I saw many "ps" processes, hundreds, so I killed them all by name.
I don't see any ...
1
vote
3
answers
290
views
Interpretation of server HTOP - is server Overloaded?
I have a server, which has 12 Cores, and usage is 42. What does it mean?
As far as I know 1 i 100% of one core. So 42 is 100% of 42 cores?
2
votes
1
answer
907
views
docker stats memory lower than top's rss
I created a container, in which I've created ~10 processes. I want to analyze how much memory they're consuming. To achieve that, I ran top inside the container, and docker stats outside.
In top, I ...
0
votes
1
answer
507
views
AWS S3 sync command stalls and rung for a long time even when nothing new to sync
I have a cronjob that executes every minute that uses awscli s3 sync command for syncing my website with a S3 bucket.
It seems the command sometimes run for a very long time for no apparent reason : ...
1
vote
1
answer
2k
views
How to change interval of atop log?
My system is centos 7.4 with atop 2.3.0
I want to change atop log interval from default 600 to 300,then I vi /usr/share/atop/atop.daily as below:
#!/bin/bash
CURDAY=`date +%Y%m%d`
LOGPATH=/var/...
-1
votes
1
answer
474
views
FreeBSD top disk io read write units
In FreeBSD you can run "top -m io" and it will show you disk io.
For example:
What units is the WRITE/READ in, bytes or kilobytes or megabytes?
2
votes
1
answer
96
views
Identify the top processes when the overall system has large CPU utilization in Ubuntu server
I have a Ubuntu server running in EC2.
Occasionally, I get a large CPU usage 99+% utilization as measured in EC2 monitoring dashboard, even though most times it is less than 10%.
Since traffic to my ...
1
vote
0
answers
31
views
How virtualization affects Linux guest reports of CPU usage?
We have a Hyper-V guest with 4 virtual cores reporting 50% usage total among all the virtual cores. That is, this 50% is what atop and top report, with a complementary 350% of "idle". That means at ...
0
votes
1
answer
307
views
How to tell threads from processes in top and ps on Linux?
I find it quite confusing to differentiate threads and processes when I run top and then press H or run ps -Hef.
I know that they share the same attributes, which makes them similar but was wondering ...
2
votes
1
answer
869
views
Colulmn width of "top" entries
The username column in the output of top command shows a + for the names that are longer than the column width. How can I increase that?
I don't see any option for that.
1
vote
0
answers
34
views
Invalid cpu values in top for EC2 AWS instances
We are seeing what appear to be invalid values in top on more than one of our AWS instances:
top - 08:44:56 up 259 days, 17:31, 1 user, load average: 0.01, 0.02, 0.01
Tasks: 78 total, 1 running, ...
0
votes
2
answers
611
views
Why linux "top" command shows different CPU utilizations values with only one CPU?
Why does "top" command shows two different values for a Linux server with only just one CPU. I understand that it can differs when there is a multi core processor but in this case I'm using a AWS ...
0
votes
1
answer
544
views
High server load on KVM VPS
I have a KVM single core VPS optimized for hosting static content running only Nginx 1.13.8 with SSD and 1GB RAM with a hosting provider on a package of 100 Mbit/s unmetered bandwidth.
OS in use is 3....
0
votes
0
answers
312
views
Is there any way to sort processess by UNshared (private) memory use in ps or top?
I've been able to calculate unshared memory use by summing anonymous and stack mappings from pmap -x e.g.
sudo pmap -x $THE_PID |egrep 'anon|stack' | awk '{print $2}' | paste -sd+ | bc
but can't ...
1
vote
2
answers
2k
views
Is there a way to find what processes are in nice CPU top list? [closed]
I have a top output that shows a high amount in nic CPU percentage.
Is there a way to see what those processes are? And is it possible to do it from top?
1
vote
0
answers
160
views
Inaccurate memory usage reading under OpenVZ?
I have got an OpenVZ-based VPS running CentOS 7.4 (Linux hostname 2.6.32-042stab116.2 #1 SMP Fri Jun 24 15:33:57 MSK 2016 x86_64 x86_64 x86_64 GNU/Linux).
The workload is a single Java application. ...
0
votes
1
answer
980
views
Steal Time: How to interpret strange values for %st in top on an EC2 instance
I have an Amazon EC2 t2.medium instance that is showing very strange CPU Steal Time values, mostly large negative numbers and also very high idle CPU numbers.
Anything that explains such strange ...
-1
votes
2
answers
183
views
How can I adjust the name of a process I run?
I have a rack/ruby application on a server. I run it as follows:
nohup rackup -o 0.0.0.0 -p 1234 &
In the output of "top" command it appears as simply "ruby"
PID USERNAME THR PRI NICE ...
0
votes
1
answer
489
views
CPU wait state (RAM) stats?
As far as I understand, the wa % stat displayed by top is the I/O wait (i.e. hard drive).
Is there a way to get similar wait stats, but for when the CPU is waiting for memory?
My server is pretty ...
3
votes
1
answer
1k
views
Why are cpu usage percentage different between top and iostat?
On a heavily loaded database server, I am getting vastly different output from top and iostat for cpu usage. Why might the value be different?
top:
%Cpu(s): 84.7 us, 11.8 sy, 0.3 ni, 2.4 id, 0.6 ...
1
vote
2
answers
1k
views
Top command - overall cpu usage is lesser than process' cpu usage
top - 14:51:31 up 11:24, 5 users, load average: 0.79, 0.95, 0.97
Tasks: 173 total, 2 running, 171 sleeping, 0 stopped, 0 zombie
%Cpu(s): 9.1 us, 4.5 sy, 0.0 ni, 85.5 id, 0.0 wa, 0.0 hi, ...
0
votes
1
answer
127
views
top command from a VPS [closed]
When I run top from my VPS, at the %Cpu(s) row, I see a few values, e.g. %us, %sys, %wa, etc
I'd like to ask whether these are the stats for the VPS only, or for the whole node (dedicated server)?
...
1
vote
1
answer
941
views
Cpu usage percentage with Top
I'm evaluating performance of a software on a server.
To do that I'm watching at Top command output.
Anyway sometimes the process exceed the 100% cpu usage. How this is possible? What means 120% cpu ...
0
votes
1
answer
109
views
Seeing `git status -s` in top every 30 seconds
I have been seeing a git status -s showing up in top every 30 seconds and can't figure out what's calling this command. It's showing 20%–60% CPU (on a busy 24gb production Linode running Debian 8.1) ...
2
votes
1
answer
318
views
Process claims to use a lot of memory, but 'free' indicates that the memory is still free
I've seen the opposite of this, but this is puzzling.
In short, I have a process where %MEM claims to use 74% of memory when using 'ps' and 'top'. However, 'free' shows that I'm only using 32% of the ...
2
votes
1
answer
196
views
how to find Linux processes started at a certain time
I am trying to debug Linux vnc session that is not responding. I think I clicked the KDE konsole icon and that is when the vnc session became frozen. I can see the windows and menu in KDE but nothing ...
0
votes
1
answer
574
views
SNMPD reporting conflicting CPU usage to top/htop
I've got a bit of an issue with reporting discrepancies.
I've currently got a server running Ubuntu 14.04.1 trusty and am receiving SNMP alerts saying that 2 of my cores are at 100% usage.
When I ...
2
votes
3
answers
14k
views
CentOS7 kswapd0 process eating 99% CPU
When I run top on centos7, I found kswapd0 eating 99% CPU, as shown in the screenshot above.
Below is some other information
top - 11:38:04 up 32 days, 16:14, 1 user, load average: 0.06, 0.13, 0....
5
votes
3
answers
5k
views
High CPU usage without useful information from top command
Over the past 2 days I started having problems with a server which has a few users on it. The server is an OpenVZ VPS. Normally when I experience high CPU usage, I always use top command to find out ...
-1
votes
1
answer
665
views
atop not working properly
I've (yum) installed atop utility in centOS 6.8. But when I run any atop command (eg: atop -a) , it is giving the following error in commandline.
Malloc failed for current sysstats
However, I'm ...
0
votes
2
answers
3k
views
How much of my memory is actually used?
I have a VPS with 8 GB of memory running mainly docker containers.
When I go to the cloud monitoring service provided by my provider, I see that ~10% of the RAM is used.
I don't understand how this ...
2
votes
1
answer
1k
views
Solaris 10 top more free memory than real
When I type TOP command in my server I get result:
CPU states: 79.3% idle, 9.2% user, 11.6% kernel, 0.0% iowait, 0.0% swap
Memory: 16G real, 19G free, 283G swap in use, 115G swap free
I don't ...
1
vote
0
answers
109
views
Why do top and csysdig give different memory usage information?
I loaded a large dataset into memory in python as follows:
data = dict(np.load(open('/path/to/data', 'rb')))
free and top (and also htop) both show that a lot of memory is in use:
$ free -h
...