/tmp (swap) in 'lsof ' output

Can please someone explain the meaning of /tmp (swap) in 'lsof'
output. What kind of open file descriptors are specified as /tmp
(swap)?

MyProc 26868 hawk   31u  VREG           0,2     8669 2426495367 /tmp
(swap)
MyProc 26868 hawk   32u  VREG           0,2     8777  736708121 /tmp
(swap)
MyProc 26868 hawk   34u  VREG           0,2     8669 2426595624 /tmp
(swap)
MyProc 26868 hawk   35u  VREG           0,2     8777  736707881 /tmp
(swap)
MyProc 26868 hawk   36u  VREG           0,2     8669 2426595672 /tmp
(swap)
MyProc 26868 hawk   38u  VREG           0,2     8669  736708073 /tmp
(swap)
MyProc 26868 hawk   41u  VREG           0,2     8777    4051096 /tmp
(swap)

When our application runs for a long time, we recieve "Too many open
file descriptors" error. The number of /tmp (swap) reported by 'lsof'
is steadily growing upon execution of the application. What can cause
increase of /tmp (swap) open file descriptors?

Thank you,
Alona

0
allab (41)
5/5/2007 1:57:08 AM
comp.unix.solaris 25958 articles. 1 followers. Post Follow

3 Replies
339 Views

Similar Articles

[PageSpeed] 17

Alona wrote:
> Can please someone explain the meaning of /tmp (swap) in 'lsof'
> output. What kind of open file descriptors are specified as /tmp
> (swap)?
> 
> MyProc 26868 hawk   31u  VREG           0,2     8669 2426495367 /tmp
> (swap)
> MyProc 26868 hawk   32u  VREG           0,2     8777  736708121 /tmp
> (swap)
> MyProc 26868 hawk   34u  VREG           0,2     8669 2426595624 /tmp
> (swap)
> MyProc 26868 hawk   35u  VREG           0,2     8777  736707881 /tmp
> (swap)
> MyProc 26868 hawk   36u  VREG           0,2     8669 2426595672 /tmp
> (swap)
> MyProc 26868 hawk   38u  VREG           0,2     8669  736708073 /tmp
> (swap)
> MyProc 26868 hawk   41u  VREG           0,2     8777    4051096 /tmp
> (swap)
> 
> When our application runs for a long time, we recieve "Too many open
> file descriptors" error. The number of /tmp (swap) reported by 'lsof'
> is steadily growing upon execution of the application. What can cause
> increase of /tmp (swap) open file descriptors?
> 
> Thank you,
> Alona
> 

Failure to close files when you are through with them?

0
Richard
5/5/2007 11:21:53 AM
On May 5, 7:21 am, "Richard B. Gilbert" <rgilber...@comcast.net>
wrote:
> Alona wrote:
> > Can please someone explain the meaning of /tmp (swap) in 'lsof'
> > output. What kind of open file descriptors are specified as /tmp
> > (swap)?
>
> > MyProc 26868 hawk   31u  VREG           0,2     8669 2426495367 /tmp
> > (swap)
> > MyProc 26868 hawk   32u  VREG           0,2     8777  736708121 /tmp
> > (swap)
> > MyProc 26868 hawk   34u  VREG           0,2     8669 2426595624 /tmp
> > (swap)
> > MyProc 26868 hawk   35u  VREG           0,2     8777  736707881 /tmp
> > (swap)
> > MyProc 26868 hawk   36u  VREG           0,2     8669 2426595672 /tmp
> > (swap)
> > MyProc 26868 hawk   38u  VREG           0,2     8669  736708073 /tmp
> > (swap)
> > MyProc 26868 hawk   41u  VREG           0,2     8777    4051096 /tmp
> > (swap)
>
> > When our application runs for a long time, we recieve "Too many open
> > file descriptors" error. The number of /tmp (swap) reported by 'lsof'
> > is steadily growing upon execution of the application. What can cause
> > increase of /tmp (swap) open file descriptors?
>
> > Thank you,
> > Alona
>
> Failure to close files when you are through with them?- Hide quoted text -
>
> - Show quoted text -

Why /tmp (swap) instead of a file name, for example /tmp/
Log_12345.log? No files are found in /tmp.

0
Alona
5/5/2007 12:20:20 PM
On 5 May 2007 05:20:20 -0700, Alona said something similar to:
>  On May 5, 7:21 am, "Richard B. Gilbert" wrote:
> > Alona wrote:
> > > When our application runs for a long time, we recieve "Too many open
> > > file descriptors" error. The number of /tmp (swap) reported by 'lsof'
> > > is steadily growing upon execution of the application. What can cause
> > > increase of /tmp (swap) open file descriptors?
> >
> > Failure to close files when you are through with them?- Hide quoted text -
> >
> 
>  Why /tmp (swap) instead of a file name, for example /tmp/
>  Log_12345.log? No files are found in /tmp.

Directories are essentially files.  Rather special files mind, but still
files.  Your application is probably trying to list files in tmp via
opendir(3), readdir(3), etc. but failing to call closedir(3) when it's
done.  A few iterations of this and you've got a bunch of open file
descriptors, all referencing /tmp.
0
Mike
5/5/2007 11:21:37 PM
Reply: