what is the command to check process ids , which are running from long time and which are consuming more cpu?
Also how to check, what a particular PID is running what
For Ex:
i have a pid :3223722 which is running since from long time,
if i want to check what is this process about, the details of this process
and what it is running ,
when i type
ps -ef | grep 3223722
ps3adm 1458336 2187476 0 05:24:31 pts/17 0:00 grep 3223722
what is the command to check process ids , which are running from long time ?
[QUOTE=sidharthmellam;302424325]
what is the command to check process ids , which are running from long time and which are consuming more cpu?[quote]
Use "ps" and consult its (rather exhaustive) man page by issuing "man ps". For instance, use:
Additionally there are a lot of other tools displaying basically the same info as the above command but in somewhat "cooked" form: "topas" (IBMs own tool), "nmon" (freeware package), "monitor" (freeware) and probably some others.
Quote:
Originally Posted by sidharthmellam
i have a pid :3223722 which is running since from long time,
This suggests, that there is no such process, so you can't see, which resources it is using. Of course "grep" finds itself running in the process list when it runs and so reports one hit. To filter that out you could use:
If this command doesn't turn up with any output the PID is simply not used.
I am middle of writing health check scripts, can you pls share commands on how I can get cpu and Mem of top consuming process info at the moment?
Also can u suggest ideas on what all I can look for as a part do health check on red hat Linux server?
I searched on site before posting, but... (2 Replies)
Hi,
I have four tomcat instances named PNK, PNK1, PNK2, PNK3.
All are running on the same server.
To kill tomcat instance I usually do below for PNK1,PNK2,PNK3
kill -9 `ps -ef|grep tomcat|grep PNK1|grep -v grep|awk '{print $2}'`
But the above command does not work for PNK. Can some... (7 Replies)
Please help me with this question
I have a tantan.sh under /home/mydir which is a caller to another script "tantan.sh" under /home/anotherdir
-----------------------------------------------------------
/home/mydir/tantan.sh
------------------------------------------------------------... (6 Replies)
Hello
There are options / commands to check which process is consuming maximum memory
However is there any command/mechanism which will tell us which process was consuming maximum memory in specific time interval in the past?
I heard nmon report can help in this regard.
is there any... (5 Replies)
Hello all:
Working on a job I was asked get a simple script to perform the following task and would like to ask for some help. I'm looking forward to learning more and diving deeper into the World of Open Source servers.
I need a script for a Unix server, using as few lines as possible, that... (4 Replies)
Hi all,
We have a server having much processes running. It is very difficuilt to trace the exact consuming more memory. Howerver, it shows CPU usage in sequence but how memory?
Tried working with TOP command.
Please let me know if something not clear.
Thanks,
Deepak (5 Replies)
HI All,
Can anyone send me a command to find TOP 5 Memory consuming process.
It would be lelpful if I get output something like below
processname - pid - memory(in MB) - command
I tried few commands from the internet but the result only give the real memory usage or pagging, I want total... (4 Replies)