Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Feb 2009 19:54:56 +0100 (CET)
From:      "Gelsema, P \(Patrick\) - FreeBSD" <freebsd@superhero.nl>
To:        freebsd-questions@freebsd.org
Subject:   /var grows, apache open file, which file?
Message-ID:  <d518000de7090860de1b014db92acde9.squirrel@webmail.superhero.nl>

next in thread | raw e-mail | index | archive | help
Hi List,

I noticed that my var slice is getting eaten by apache. The amount of free
space is getting less and less per day. So I started to investigate.

I did the following;

# fstat -u www | grep var | more
www      httpd      97042    9 /var      74653 -rw-------  176907484  w
www      httpd      97042   12 /var      71575 -rw-------  1345623  w
www      httpd      97042   13 /var      24693 -rw-r--r--       0  w
www      httpd      97042   15 /var      70919 -rw-------       0  w
www      httpd      97042   16 /var      70919 -rw-------       0  w
www      httpd      26059    9 /var      74653 -rw-------  176907484  w
www      httpd      26059   12 /var      71575 -rw-------  1345623  w

So I have an Inumber, lets search for that.

# find / -inum 74653
/usr/ports/net/pptpclient/files

This confuses me! That is on a different slice.

When I restart apachectl the space is reclamed and I've got a normal usage
of /var.

# apachectl -v
Server version: Apache/2.2.11 (FreeBSD)
Server built:   Jan 11 2009 22:01:58

# uname -a
FreeBSD wolverine.superhero.nl 7.1-RELEASE FreeBSD 7.1-RELEASE #0: Tue Jan
 6 07:44:32 CET 2009    
drmanhattan@wolverine.superhero.nl:/usr/obj/usr/src/sys/WOLVERINE  i386

Any thoughts?

Cheers,

Patrick



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