Long running sessions


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Long running sessions
# 1  
Old 04-11-2011
Long running sessions

Hi,
How can i find out the average cpu utilization of a particular long-running process in UNIX? is there some command for this

Thanks
# 2  
Old 04-11-2011
What Operating System and version do you have?
What Shell do you use?

What does a sample "ps" (or "top" or whatever) command line and matching output look like which shows an example of the rogue process?

Need to identify exactly how you identify the process and what version (or versions) of the unix "ps" command you have available.
With a decent Berkeley "ps" you should be able to get the elapsed time and total CPU time used for a single running process.
There are other versions of "ps" where determining the elapsed time of a process is not at all easy.
It's all about whether you have "ps -o ....".
# 3  
Old 04-11-2011
Long running java session

Hi methyl,

i use UNIX operating system
and the java process will take more cpu utilisation value..
i wanna use this %cpu value in report.....
can u help me out?
Smilie
# 4  
Old 04-11-2011
Version of unix:
Code:
uname -a

Shell:
Code:
echo $SHELL

Any command which you know which shows the process?
?????????
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Check for long running process on AIX

I want to write a shellscript which determines if a particular process is long running than my specified threshold time. Eg: My process name is "prsd" and is expected to run for 15 mins and completes. If I set a threshold limit of 1 hour, and how we can the get output of the long running... (4 Replies)
Discussion started by: chandu123
4 Replies

2. AIX

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... (5 Replies)
Discussion started by: mohamedirfan
5 Replies

3. Shell Programming and Scripting

Record too long error while running awk

I have written below script to add substring in a file containing fixed length record, but when I run below script I get error as: ERROR: awk: record `22503004502488344040...' too long My fixed length record has length around 2000, each file is having 5000 records and total number of files is... (3 Replies)
Discussion started by: Devesh5683
3 Replies

4. UNIX for Dummies Questions & Answers

Active sessions open or long time

What kind of problems can be faced if any session which connects to unix server is open for longer time? How to find out from how much time that session is idle? :) (2 Replies)
Discussion started by: anandgodse
2 Replies

5. Solaris

Long running thread limited to 1.5% cpu

I have some long running threads on a T5220 / Solaris 10 box and it seems they never get more then 1.5% of cpu per thread. Is there a way to give a thread more cpu on the T5220's? (1 Reply)
Discussion started by: jcthreader
1 Replies

6. Shell Programming and Scripting

Monitor a long running process

Gurus, I am writing a shell script that will be used to automate cold backup of an Oracle Database. The database size is around 300G and will take around 5-6 hours to copy. I have finished the script till the copy of the datafiles. Now, I am stuck at the point where I need to monitor the... (4 Replies)
Discussion started by: sunpraveen
4 Replies

7. Shell Programming and Scripting

Alert for long running commands in script

Hi All, Is there a way in which a long running command can terminate by itself inside a script? I need something like below: echo Start <command> exit If the <command> is taking more than say 100 seconds to complete, the script should exit without manual intervention. Thanks, Deepak (2 Replies)
Discussion started by: deepakgang
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. UNIX for Advanced & Expert Users

How to check since when (for how long) a particular process is running ?

How do I check if a particular process is running from a certain date and time ? (2 Replies)
Discussion started by: hpuxlxboy
2 Replies

10. UNIX for Advanced & Expert Users

how to check how long the process has been running.

I have a requirement to check how long a process is running on unix system.If i use ps -ef i am getting the following message guest 2453638 1998920 0 16:16:05 - 0:00 dsapi_slave 9 8 0 but this is showing only time not the date.Can any one please advice me any script to find out how... (2 Replies)
Discussion started by: ukatru
2 Replies
Login or Register to Ask a Question