Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Jun 2006 23:28:12 +0200
From:      Wilko Bulte <wb@freebie.xs4all.nl>
To:        Clint Olsen <clint@0lsen.net>
Cc:        stable@freebsd.org
Subject:   Re: How can I know which files a proccess is accessing?
Message-ID:  <20060606212812.GA8246@freebie.xs4all.nl>
In-Reply-To: <20060606211401.GH50794@0lsen.net>
References:  <d3ea75b30606061339u55efbecemab0d3d0eb9adb636@mail.gmail.com> <20060606211401.GH50794@0lsen.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jun 06, 2006 at 02:14:01PM -0700, 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?

The same:

wb@freebie ~: pkg_info | grep lsof
lsof-4.76.2         Lists information about open files (similar to fstat(1))

see: /usr/ports/sysutils/lsof

-- 
Wilko Bulte				wilko@FreeBSD.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060606212812.GA8246>