1837738 Members
3752 Online
110118 Solutions
New Discussion

Re: Process Attributes

 
Bruce Rudolph
New Member

Process Attributes

How do you get a list of a processes attributes? Specifically, how do you know which file descriptors are open by a process?
3 REPLIES 3
SEA RC
Occasional Contributor

Re: Process Attributes

Hi,

The best way to do see what file descriptors are used by a particular processs is probably through lsof. Most certainly, it will include 0,1 and 2 for stdin, stdout and stderr.

Hope that helps!
Andy Monks
Honored Contributor

Re: Process Attributes

The best way to see the open file descriptors using using lsof :-

http://hpux.cs.utah.edu/ftp/hpux/Sysadmin/lsof-4.48/
Tim Malnati
Honored Contributor

Re: Process Attributes

My preferred method of doing this is with Glance Plus in graphical mode. Simply select the process in question; that in turn displays a window of performance metrics for the process. From there, select 'Open Files' from the drop down menu and you'll have probably have more information than you need.

One of the things That Glance displays in this mode is the offset location within the file that the last read or write accessed. This can be a real handy thing at times. Say there is a batch job running and it uses a particular sequential file as it's primary source. The offset percentage (offset/total size) is a good rough indication of where the process stands. If none of the open file offsets are changing, there is a good chance that the application process is either hung or locked into some continuous loop.