Thank you bakunin for the response , it is very much clear
one of the process has the following details , TIME+ means Total time of activity of this process, for process 29230 , is this active for 667 hours , means 27 days ,but the server itself did not exist 20 days ago, it is a fresh installation started 10 days ago, how to understand 29230 process
According to your first top this server has been up and running for 36 days:
Quote:
top - 02:44:13 up 36 days, 16:37, 1 user, load average: 8.57, 8.41, 8.08
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 29220 oraSLV 20 0 8990m 4.4g 4.4g R 53 14.2 793:38.88 oracle
13666 oraSLV 20 0 8984m 1.1g 1.1g R 45 3.6 16:44.64 oracle
29228 oraSLV 20 0 8988m 4.4g 4.4g R 44 14.1 756:33.95 oracle
29250 oraSLV 20 0 8997m 4.4g 4.4g R 44 14.1 718:29.60 oracle
30245 oraSLV 20 0 8998m 4.4g 4.4g R 43 14.2 789:12.81 oracle
29222 oraSLV 20 0 8987m 4.4g 4.4g R 42 14.2 740:11.18 oracle
29234 oraSLV 20 0 8990m 4.4g 4.4g R 42 14.2 708:55.32 oracle
29248 oraSLV 20 0 8983m 4.4g 4.4g R 39 14.2 799:41.92 oracle
20113 oraSLV 20 0 8982m 1.3g 1.3g S 6 4.1 32:00.02 oracle
Your server is pegged by those processed that I have highlighted in red. They are using most of the cpu cycles. %id in red indicates the cpu available (idle) and you have almost nothing. %us indicate what percentage of the cpu usage is being utilized by user space instead of system space (kernel) which it is indicated with %sy
Last edited by Aia; 05-04-2014 at 01:42 PM..
Reason: mispelling
how can i do that in a script withough havin the script halt at the section where the top command is located. am writign a script that will send me the out put of unx commands if the load average of a machine goes beyond the recommended number.
top -n 20
i want to save this output to a file... (1 Reply)
hello everyone,
i am attempting to run the sleep function (i've also tried select) during the execution of a command to mimic a status. for example:
# this is a terminal screen
# here the process is executed
# below this a status is displayed while the command executes like so:... (3 Replies)
Hi,
Could someone please tell me how to wakeup sleeping processes? (i.e. change the process status from "S" to "R" when viewing in ps command).
I ran a few programs in the background by "&" which went into "sleep" mode and I want them to run.
Any help will be greatly appreciated.
Steve (11 Replies)
Okay, I am trying to come up with a multi-platform script to report top ten CPU and memory hog processes, which will be run by our enterprise monitoring application as an auto-action item when the CPU and Memory utilization gets reported as higher than a certain threshold
I use top on other... (5 Replies)
I'm using top to view processes. But, I do not know how to scroll down the list to view what is not showed in the terminal window. Anyone know how to do this? (1 Reply)
ps -eo pid,comm,%cpu lists all processes (in increasing PID number).
How to get only the top-10 most CPU intensive ones? I know about top: this is BASH exercise.
I tried redirecting above code to cut ps -eo pid,comm,%cpu | cut -f2but ps' output isn't TAB delimited. How can I otherwise use... (5 Replies)
Hi All,
O/S: Linux 86x64 Red Hat
I have a sql script that queries top consuming processes of Linux using TOP commnd.
Now I need to automate this task and pass the top processes i.e., PID to the sql script through unix shell script.
Could anyone please let me know how to achieve this.
... (2 Replies)
Hi,
I have ascript with a recursive funtion below.
I have mentioned to sleep for 60minutes but it doesnt doing so.
Its keep on running until if /elif conditions satiesfies.
Can you pls help what is wrong here.
funcstatus ()
{
if
then
echo "`date` - Current status... (2 Replies)
RHEL 5.4
What are the first things you would look for when analyzing Linux's top command output?
Below is a top output from one of our Linux machines; Do you see anything wrong?
top - 15:56:01 up 133 days, 5:55, 5 users, load average: 2.94, 2.93, 6.58
Tasks: 178 total, 2 running,... (2 Replies)
Hi All,
I am new to Scripting , please give me guidance to write the script to see top processes on the Linux operating system.
I executed this script on my Virtual Server(Linux)
DATE=`date +%Y%m%d%H%M%S`
HOME=/home/xmp/testing/xmp_report
RADIUS_PID=`xms -xmp sh pr | grep... (2 Replies)
Discussion started by: madala
2 Replies
LEARN ABOUT DEBIAN
stapgraph
STAP(1) General Commands Manual STAP(1)NAME
stapgraph - systemtap grapher
SYNOPSIS
stapgraph [ OPTIONS ] FILENAME [ ARGUMENTS ]
stapgraph [ OPTIONS ] - [ ARGUMENTS ]
stapgraph [ OPTIONS ] -e SCRIPT [ ARGUMENTS ]
DESCRIPTION
The stapgraph program is a simple frontend to stap that produces graphs from the output of stap scripts.
This manual corresponds to version 1.7.
OPTIONS
stapgraph accepts all options accepted by stap. They are passed through to the stap process running the script or probe points.
USER INTERFACE
The script that produces results can be started from a dialog within the program, in addition to being launched using the program's command
line arguments. This dialog allows arguments to be passed to stap and to the script.
When running, a mouse left click on a graph pauses the display of data, even though it is still collected by the program. Dragging the
mouse scrolls the graph backwards and forwards in time; clicking the displayed pause button restarts the display of new data.
The scroll wheel can be used to zoom in and out on the graph.
SCRIPT OUTPUT SYNTAX
Scripts can output Comma Separated Values (CSV) which will be interpreted by stapgraph. The first value is the X coordinate of the graph,
usually a time value. stapgraph assumes that this value is constantly increasing.
A different syntax allows the script to specify many details of the graph's appearance.
%DataSet: DATA-SET-NAME SCALE COLOR GRAPHSTYLE
The data set name identifies a data set that will be emitted by the script. "SCALE" is the overall vertical scale of the graph for this
data set. "COLOR" is a red-green-blue hex color. "GRAPHSTYLE" is one of bar - a traditional bar graph dot - plotted points discreet - An
event style timeline that records that an event happened at a certain time.
%Title: TITLE
A title for the whole graph.
%XAxisTitle: TITLE
The legend for the X axis
%YAxisTitle: TITLE
The legend for the Y axis.
%YMax: MAX VALUE
The maximum value displayed on the graph.
GRAPH DATA
DATA SET TIME VALUE Each data point that is to be plotted is tagged with the data set name, followed by the time and value of the point.
SEE ALSO stap(3stap), staprun(3stap),
BUGS
Use the Bugzilla link off of the project web page or our mailing list. http://sourceware.org/systemtap/,<systemtap@sourceware.org>.
Red Hat 2013-05-14 STAP(1)