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
1
vote
7 answers

Is it possible to change the cmdline of a running process (to more easily identify it in top, for example)?

I run a number of linux servers with VMware Server 2. When their response time is not so hot or the load average goes up, I open up top to see what's going on, or for our production servers I have top open all day long. The issue is, the cmdline of…
Josh
  • 9,190
  • 28
  • 80
  • 128
1
vote
3 answers

Top shows load of 2.5: how can I find out which processes are waiting for the CPU?

I have a linux box hosting a pretty low-traffic site. It's an Amazon EC2 "small" instance, running Ubuntu 10.04. When I run "top" on it, I usually see a load of between 2 and 3, which in my experience is pretty high. However, not much seems to…
jfrank
  • 168
  • 1
  • 1
  • 8
1
vote
1 answer

SSH/bash 'w' command showing 2 users, but listing only 1?

so, pretty much, i was going about my server business as usual, when my SSH/bash terminal(PuTTY) decided to stop responding during a grep command. ^C wasn't letting me cancel out the job, so after a while i closed the terminal and logged back in as…
Edgar beatlebe
1
vote
2 answers

Top like viewer eating tail -f stream

I'm searching for a command line tool working with a stream of lines (tail -f typically) and counting them like : tail -f /var/log/apache2/access.log | cut -d' ' -f1 | SOME_COMMAND and displaying a top-like view as : 52 xxx.xxx.xxx.xxx 12…
Mandark
  • 251
  • 1
  • 2
  • 8
1
vote
3 answers

Opening an existing process

I am using Eclipse in Linux through a remote connection (xrdp). My internet got disconnected, so I got disconnected from the server while eclipse was running. Now I logged in again, and I do the "top" command I can see that eclipse is running and…
user688
1
vote
0 answers

Memory not available but no process is using it

We are using a centos 7 server. The free -m command has the following output. [root@211 ~]# free -m total used free shared buff/cache available Mem: 31841 31173 389 0 278 …
1
vote
1 answer

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, and I am trying to associate apache processes with the…
Alex Douglas
  • 353
  • 1
  • 5
  • 12
1
vote
1 answer

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/atop_20210320 10 However when running atop as a service…
Pel
  • 11
  • 2
0
votes
1 answer

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 the system echo 1 >…
0
votes
1 answer

Is running a script a process?

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. And top shows several instances of cc1plus so I am not…
bomben
  • 115
  • 9
0
votes
1 answer

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 offending processes currently, but the load remains.…
Corepuncher
  • 191
  • 1
  • 3
  • 9
0
votes
1 answer

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 : 20613 bitnami 20 0 191876 48668 9756 R…
wlarcheveque
  • 131
  • 1
  • 2
  • 6
0
votes
2 answers

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 whether there is anything in the output that can…
user
  • 13
  • 4
0
votes
2 answers

How should I read these figures from top? Where's the memory gone?

I'm looking at these figures in top: Mem: 3891192k total, 3659276k used, 231916k free, 25640k buffers Swap: 4449924k total, 0k used, 4449924k free, 1237416k cached and struggling to see where all the 3659276k has gone. The top…
jjujuma
0
votes
1 answer

[Unix]How do I know this particular mysql process belong to what process on `show processlist`

As stated on question's title, I ran into situations and I need to check something. Here's the condition. When I do top, I see mysql process with ID, say 1234. But, when I execute show processlist from mysql, I don't see process ID 1234. My question…
ariefbayu
  • 229
  • 2
  • 5
  • 13