How can I know which files a proccess is accessing?
Jung-uk Kim
jkim at FreeBSD.org
Tue Jun 6 21:44:32 UTC 2006
On Tuesday 06 June 2006 05:14 pm, Clint Olsen wrote:
> On Jun 06, Eduardo Meyer wrote:
> > I need to know which files under /var a proccess (httpd here) is
> > acessing. It is not logs because I have a different partition for
> > logs.
> >
> > gstat tells me that slice ad0s1h (my /var) is 100% frequently,
> > and in fact with fstat I can see a number of httpd proccesses
> > running accesing that. But fstat only shows me inodes and the
> > mount point.
> >
> > I need to know which files the proccesses are acessing.
>
> Linux has a cool program: lsof (list open files). Does FreeBSD
> have something similar?
http://www.freebsd.org/cgi/cvsweb.cgi/ports/sysutils/lsof/
Jung-uk Kim
More information about the freebsd-stable
mailing list