Operating System - HP-UX
1753837 Members
9106 Online
108806 Solutions
New Discussion юеВ

Open File Handles for a process

 
Satish Kumar Malisetti
Frequent Advisor

Open File Handles for a process

Hello All,

I have a application called mediation , when i am startin a newprocess it is used to collect file and process then deliver to downstream

when i checked out open file handles are increasing for every process by 2 how can find from the application code where these are opening from

ex:

cor 19891 fwsup01a 79u REG 3,0xa 212 15965318 /fwdev3/data (cbfp0004:/vol/fv_FUSD1_APP04954_cbs_pa_0/qt_FUSD1_APP04954_pa_fwdev3_0)
cor 19891 fwsup01a 80u REG 3,0xa 88 18125768 /fwdev3/data (cbfp0004:/vol/fv_FUSD1_APP04954_cbs_pa_0/qt_FUSD1_APP04954_pa_fwdev3_0)


how find these 2 opened
4 REPLIES 4
Dennis Handly
Acclaimed Contributor

Re: Open File Handles for a process

>how find these 2 opened

You would have to debug your application, setting a breakpoint in open.
These open files could also be inherited from their parent?
Satish Kumar Malisetti
Frequent Advisor

Re: Open File Handles for a process

These two are opening from the application
after file processed
Dennis Handly
Acclaimed Contributor

Re: Open File Handles for a process

>These two are opening from the application after file processed

So you need to dust off your grep and debugger skills. :-)
Emil Velez
Honored Contributor

Re: Open File Handles for a process

could lsof work or tusc

lsof lists open files

tusc allows you to see system calls for a process while it runs.