Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

2
votes
1answer
69 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
0answers
20 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
1answer
35 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 ...
1
vote
1answer
8 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
0answers
27 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
2answers
68 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
1answer
176 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
0answers
24 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 ...
0
votes
0answers
11 views

Plesk server: Is normal to use all the RAM? [duplicate]

Why plesk use the most of the RAM and why the most of the ram is in cache? Do my sites can have problems with just a few free ram available? TOP Plesk statistics
1
vote
2answers
232 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
0answers
77 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
1answer
677 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
2answers
106 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
1answer
92 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 ...
1
vote
1answer
218 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 ...
0
votes
2answers
427 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, ...
-1
votes
1answer
77 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
1answer
375 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
1answer
62 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
1answer
183 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
1answer
52 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
1answer
201 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 ...
0
votes
0answers
16 views

How to check the load and stress testing of my app? [duplicate]

I need to test the load and performance of my web server, like how many concurrent users or transactions the server can handle. I'm trying to test the load with Linux Siege. But there are some ...
0
votes
2answers
3k 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
3answers
2k 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
1answer
246 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
2answers
1k 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 ...
0
votes
1answer
434 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 ...
0
votes
0answers
77 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 ...
0
votes
0answers
323 views

Linux process CPU usage drops when strace attached

I am facing bizarre situation with one of daemon processes on RHEL 6 box. It has been showing high CPU usage in top putput, mostly in %sy space. However when I try to check which syscalls consume CPU ...
3
votes
1answer
38 views

Shift+E to change units in top does not work

I want to toggle the sizes top shows. top -M does work, but when I try to toggle the sizes after top has opened using shift+E (as some suggested) it does not work. Why is that and what is the ...
-1
votes
1answer
62 views

Why wordpress sites top -c showing that only index file is used

I am want to that Why wordpress sites top -c showing that only index file is used. What all request are handle by index.php? when every time i check top -c it's show as below: 743204 (Trace) (Kill)...
0
votes
2answers
363 views

KVM Virtual Machine Guest - Get Top Output from KVM Host? Guest Monitoring Tools?

Is there a way to get the top output from a KVM virtual machine guest from the KVM host? I didn't see a way to get the list of processes using virsh. I'd really like to know what one of my virtual ...
16
votes
4answers
854 views

10 GB of RAM unaccounted for by top

Here's my free and smem output: danslimmon@bad-server:~$ free -m total used free shared buffers cached Mem: 30147 29928 218 6 ...
0
votes
0answers
269 views

Nagios check_mem reports incorrect swap usage

We use check_mem.pl to check memory usage in Nagios. On one of our CentOS 6 servers, the check reports a warning about swap usage. However, upon checking, the server doesn't seem to use any swap. ...
2
votes
1answer
1k views

How to understand the “SIZE” output of the command top on FreeBSD

I am working on a VPS with 512 of RAM, I installed mysql, run the command top and found that the value of SIZE for mysql is 638M: last pid: 2023; load averages: 0.17, 0.19, 0.21 ...
0
votes
1answer
401 views

linux + atop + chart alternative from atop

I use the atop in order to verify the performance top history and know by the values the status for each time my question is , what the alternative for atop that can view the values in chart? or ...
3
votes
2answers
386 views

Why is this server reporting high memory usage

It seems that given the memory percentage of the processes listed, my server should not be at 98% memory usage. Why is the cumulative memory usage so high? top - 14:34:50 up 14 days, 22:54, 3 users, ...
2
votes
2answers
52 views

Application Running as multiple processes

I have a java/tomcat application running on RedHat linux. Initially when I start the application, everything seems to be working perfectly fine. However, after some time, I guess 1-2 days, I witness ...
1
vote
1answer
44 views

Understanding top and tuning

I have allowed Postgres 30GB of RAM on our server. When running intensive tasks, I think it is swapping. As I understand it: VIRT - virtual memory (ie: swapped to disk) RES - complete memory usage ...
1
vote
1answer
741 views

Linux top in RES what does the 't' suffix stand for

When monitoring my system with top, I noticed that under RES some values have a 't' suffix, but I can't see any indication of what this means. PID USER PR NI VIRT RES SHR S %CPU %...
2
votes
1answer
419 views

What do angle brackets (“less than”) mean in busybox 'top' command process STAT column?

I am looking at Busybox top command: Mem: 39444K used, 4404K free, 0K shrd, 0K buff, 24704K cached CPU: 4% usr 7% sys 0% nic 87% idle 0% io 0% irq 0% sirq Load average: 0.02 0.12 0.10 1/...
2
votes
0answers
17 views

Memory usage in docker container - 600MB for OS only? [duplicate]

I am running docker swarm across two Debian 8 nodes, each with 1GB ram. I wanted to see how much memory was available to my application process (which will be a Solr server) so I did: docker-compose ...
3
votes
3answers
887 views

CentOS 7.1 - Reverting to Old Functionality of top and service

I recently installed a fresh CentOS 7.1 server. I'm noticing a few differences from CentOS 6.7, and I'm hoping there is a way to revert to an old view of certain things. For example: Question 1: ...
1
vote
1answer
62 views

disk space usage by process in ubuntu 12.04

Is there any way to know how much disk space currently running process is using? I have checked ps and top command but could not find out. Background behind this question: I have a server which is ...
4
votes
1answer
1k views

How does docker stats output relate to top output?

I've got a process running in a Docker container on Linux, with a 2GByte memory limit. (The container is started with docker run --memory=2g.) Here is what top says about it after it's been running ...
0
votes
1answer
31 views

Know which file is related to a process execution

In Unix, with top I have an output similar to this: 13916 root 18 0 903m 129m 9936 S 51.4 0.1 3:07.01 php How can I know which file is this php process executing? For example: 13916 root 18 0 903m ...
0
votes
2answers
519 views

Shell Script to check CPU Utilisation

I am trying to write a shell script which will check free memory of the server. I am trying below code top -M -n1 | grep "Mem" | awk '{print 0 + $7}' | awk '{ print $1 / 1024 }' | awk '{if ($1 < ...
1
vote
1answer
1k views

htop 100% fake CPU load

Recently my VPS show 100% CPU usage of all cores in htop and observium, but there is no process that uses > 5% CPU. In fact, the statistics of my VPS host shows there is no activity at all. Is this a ...
6
votes
3answers
1k views

top is only showing current user processes

Recently got a dedicated server running CentOS 6.7, we have ran updates and noticed that top is only showing processes for the current user. [myuser@server2 ~]$ top -b -n1 top - 20:19:20 up 1 day, ...