Questions tagged [top-command]

Unix/Linux utility providing a "dynamic, real-time view of a running system".

84 questions
0
votes
1 answer

Low CPU, low RAM, low IO, but bad performance, why?

I have an issue with regards to the performance of my Linux Centos Apache server. I have a program (written in c) that does many http requests simultaneously. This process on itself seems very efficiently as if I can do 500 requests to an external…
BastiaanWW
  • 1,259
  • 4
  • 18
  • 34
0
votes
0 answers

How does the top command name the process that is being executed

How does top name the command that is being executed I mean the last field of the command. How does it name the command (like eclipse,java etc.) , are there any other commands which show the same not like ps command which shows the complete process…
0
votes
1 answer

Unix: I want capture the output of top into variable instead of file

I want to capture the output of top into a variable instead of a file. And I tried the below top -n 1 -b | head > top_op echo "inside: $top_op" $top_op | grep Cpu > Cpu echo "$Cpu" But my output is just Inside:
Suren
  • 37
  • 7
0
votes
1 answer

Unix top command column selection from with another C program?

Is there any way to select the columns that the standard unix top command displays without entering interactive mode. I would like to be able to call the top command from within another C program.
JohnDoe
  • 77
  • 6
0
votes
1 answer

massif and top memory usage differences

I am tracing how much memory an object is using. I have simple program which simply instantiate the object and the delete it. If I look at the output of massif or if I look at the virtual memory from top I get completely different result. Do you…
Ruggero Turra
  • 16,929
  • 16
  • 85
  • 141
-1
votes
1 answer

How to hide "idle" (both CPU and RAM) processes in top?

I have a linux command based on top that outputs my current tasks snapshot (I've assembled it from various SE topics so it may not be optimal but it works for me): top -bn 1 -i | grep "^ " | awk '{…
DraxDomax
  • 1,008
  • 1
  • 9
  • 28
-1
votes
2 answers

how to get all process information in linux?

I want to get all process information in a linux server. PID, USER, CPU% , COMMAND ... Exactly, I want to get these information in a python script. I tried a,b = commands.getstatusoutput('top -n 1') This gave me about 20 rows of results ordered by…
Swind D.C. Xu
  • 225
  • 1
  • 3
  • 10
-1
votes
1 answer

"top" command shows %CPU as 1360, is it normal?

When I check processes with top command I see a process with 1360 as %CPU percentage. Is it normal? How should I interpret this?
cavacetta
  • 388
  • 1
  • 3
  • 8
-2
votes
1 answer

working principle of top command in linux

I want to understand the implementation of top command in linux ie how it uses the procfs interface for displaying the top running processes.?what sources should i refer.
Ind
  • 11
  • 3
1 2 3 4 5
6