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.

302 questions
2
votes
4 answers

Is there an easy way to insert data/time in front of a log file with just shell scripting?

Say I want to monitor memory usage on a java process overnight. I can do something like top | grep java > out.log I will get a log file with a whole bunch of lines. Is there an easy way to get a data/time inserted in front of each line?
James Dean
  • 801
  • 1
  • 7
  • 5
2
votes
4 answers

On a freeBSD box - CPU idle from TOP is 0% but no process taking up cpu

On a freeBSD box, when I do TOP after starting a process x: CPU states: 34.4% user, 0.0% nice, 64.8% system, 0.8% interrupt, 0.0% idle Here, 0% idle. But the highest cpu using process is x which is just using about 3%. and there is no other…
hari
  • 270
  • 1
  • 4
  • 17
2
votes
2 answers

Exclude a process from being listed in `top`

Is it possible to exclude some processes from being reported by top? For example, I would like to exclude itself from its listing (ie, I don't want top to show in the process list). I would also like to be able to exclude processes that do not…
warren
  • 18,369
  • 23
  • 84
  • 135
2
votes
2 answers

Provide Description for a Command for 'ps' Command Visibility

So the problem I want to find a tidy solution for is that when I log into a server (I have some Solaris and RHEL instances about), I try to find out what applications are running: $ ps -auxww | grep And I get a nice…
Nick Klauer
  • 179
  • 1
  • 7
1
vote
3 answers

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?
Gacek
  • 1,201
  • 2
  • 10
  • 10
1
vote
1 answer

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…
kittygirl
  • 945
  • 5
  • 13
  • 33
1
vote
0 answers

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 least in theory, 12.5% of total virtual CPU…
dsign
  • 153
  • 8
1
vote
0 answers

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, 77 sleeping, 0 stopped, 0 zombie Cpu(s): …
user1167223
  • 171
  • 5
  • 15
1
vote
2 answers

Is there a way to find what processes are in nice CPU top list?

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?
user55570
  • 458
  • 6
  • 18
1
vote
0 answers

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. According to top, the java process consumes about…
minexew
  • 111
  • 3
1
vote
3 answers

Why one process is taking so many resources

My website is being very slow or non-responsive. A quick look at the top command shows me something like this: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 1709 mysql 20 0 828m 432m 5584 S 382.6 5.4 7414:24…
6bytes
  • 805
  • 2
  • 10
  • 15
1
vote
2 answers

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.0 si, 0.0 st KiB Mem : 32601524 total,…
Mahesh
  • 247
  • 1
  • 4
  • 16
1
vote
1 answer

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 usage for example?!?
Akinn
  • 135
  • 6
1
vote
2 answers

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 value is related to the output of the three…
Holt
  • 181
  • 2
  • 8
1
vote
0 answers

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 total used free shared …
gmr
  • 111
  • 2