How to Identify long running unix processes


 
Thread Tools Search this Thread
Operating Systems AIX How to Identify long running unix processes
Prev   Next
# 1  
Old 04-05-2012
How to Identify long running unix processes

Hi All, Need an urgent help, I have a requirement to find long running unix processes.. I have tried the below commands, but not succeed. I need to arrange the unix processess in an order of elapsed time (high to low) that runs in a system.
For Eg:
Consider we have 3 processes,
Pid 1
pid 2
pid 3
pid 1 is running for past 3 hours
pid 2 is running for past 5 hours
pid 3 is running for past 1 hour
The output of the command should be like this..
Descending order based on how long it runs...
pid 2 (5 hours)
pid 1 (3 hours)
pid 3 (1 hour)
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Need to check long running processes on the database server and the os is AIX

Hello, Please help me with a script with which I can check long running processes on the database server and the os is AIX. Best regards, Vishal (5 Replies)
Discussion started by: Vishal_dba
5 Replies

2. AIX

Identify All Processes memory and cpu usage.

Hi All, Anyone has script to monitor AIX total processes memory and cpu usage that contribute to the total memory and CPU utilize so far ? The purpose of this is to analyze process memory trend. Thanks. Best Regards, ckwan (2 Replies)
Discussion started by: ckwan
2 Replies

3. Shell Programming and Scripting

Quick question about finding the PID of long-running processes

The end result that I'd like is to terminate any process on my ps -u username list that extends beyond 20 minutes. I know for a fact that this process will be named l.exe, but I don't know the number in between and I won't know the PID. Is there a way to use grep or pidof to do this task every 20... (2 Replies)
Discussion started by: Bolanok
2 Replies

4. UNIX for Dummies Questions & Answers

Need Unix command to get all processes running on a port

Hi, Can someone provide me the Linux command to get the list of all processes running on a particular port. Thanks, Sandy (1 Reply)
Discussion started by: sandy8765
1 Replies

5. UNIX for Dummies Questions & Answers

How do you print the number of processes that each user is currently running in Unix?

Ok, so I know there's a way to do this, but I've been trying to find out all afternoon with no luck. I think it should print out something like this: 1 bin 2 daemon 6 duo Where the numbers on the left are the number of processes being run by the user whose name is listed on the right. Is... (4 Replies)
Discussion started by: Duo11
4 Replies

6. AIX

Script to identify high CPU usage processes

Hi Guys, I need to write a script capable of identifying when a high cpu utilitzation process. It sounds simple but we are on a AIX 5.3 environment with Virtual CPU's (VP's) and logical CPU's. Please any ideas or tips would be highly appreciated. Thanks. Harby. (6 Replies)
Discussion started by: arizah
6 Replies

7. Shell Programming and Scripting

determine the active processes on the system which are running since long time

Hi , Please help me shell script to determine the active processes on the system which are running since long time (2 Replies)
Discussion started by: itian2010
2 Replies

8. Shell Programming and Scripting

Script for long running processes....

I searched the forums but didn't see anything related to what I'm looking for. I need a script that would give me a listing of jobs running longer than, for example, 12 hours or so. Thanks in advance for your assistance!! (2 Replies)
Discussion started by: CyberOptiq
2 Replies

9. Shell Programming and Scripting

identify the unix processes performing high disk i/o reads and writes

I would like to write shell/perl script which identifies the top unix processes that are performing high disk I/O's or/and writes If any one knows the solution please help me? -Swamy (0 Replies)
Discussion started by: avsswamy
0 Replies

10. Shell Programming and Scripting

Identify specific processes from different Machine

Hi, i;m getting a hard time on how to have this kind of script. 1. ssh on another machine and check if a specific process is running and notify in there is a problem. SOS!!!!!!!!!!!!! :( (2 Replies)
Discussion started by: tungaw2004
2 Replies
Login or Register to Ask a Question
CRASH(L)																  CRASH(L)

NAME
crash - analyze kernel dump or active system image SYNOPSIS
crash [ aps ] [ -bdvtiz ] [ -s sfile ] [ -c cfile ] [ -u addr ] DESCRIPTION
Synopsis of options - -b Brief mode; skip general display of processes -d Crash dump contains swap image. (default?) -v Verbose; dump much information about each proc [future] -t TTY structs to be dumpped -i Incore inode table to be printed -c FILE Provide non-standard file name for system image input -s FILE Provide non-standard symboltable input -u ADDR Trace a process other than currently selected one -z Interrupt Trace displayed aps Print PS & PC at time of interupt (doesn't do anything) crash examines a dump of unix which it looks for in the file sysdump. It prints out the contents of the general registers, the kernel stack and a traceback through the kernel stack. If an aps is specified, the ps and pc at time of interrupt are also printed out. The dump of the stack commences from a "reasonable" address and all addresses are relocated to virtual addresses by using the value of kdsa6 found in the dump. The following options may be specified. -b Brief mode; skip general display of processes. Only the currently selected process will be traced. -c cfile If the -c argument is found, the following argument is taken to be the name of a file containing the system image. The default is "/usr/sys/core". -s sfile If the -s argument is found the following argument is taken to be the name of a file, containing a symbol table which should be used in interpreting text addresses. The default is "/unix". -u addr Force a process to be displayed as if it were active when the crash occurred. addr is the octal address of the proc table entry. FILES
/unix system namelist /dev/swap swap device /usr/sys/core core file SEE ALSO
crash(8), adb(1), ps(1), rstat(1) DIAGNOSTICS
Missing arg Unable to Open file Format Error in symbolfile BUGS
Care should be used in running crash on "/dev/mem". Things can change while crash is running; the picture it gives is only a close approx- imation to reality. AUTHOR
Mike Muuss, JHU EE John Stewart, Teledyne Geotech March 1983 CRASH(L)