From owner-freebsd-questions@FreeBSD.ORG Fri Feb 6 18:54:59 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5210E106566B for ; Fri, 6 Feb 2009 18:54:59 +0000 (UTC) (envelope-from freebsd@superhero.nl) Received: from superhero.nl (wolverine.superhero.nl [77.73.16.20]) by mx1.freebsd.org (Postfix) with ESMTP id A3D568FC21 for ; Fri, 6 Feb 2009 18:54:57 +0000 (UTC) (envelope-from freebsd@superhero.nl) Received: (qmail 87163 invoked by uid 80); 6 Feb 2009 18:54:56 -0000 Received: from 82.95.198.17 (SquirrelMail authenticated user gelsemap) by webmail.superhero.nl with HTTP; Fri, 6 Feb 2009 19:54:56 +0100 (CET) Message-ID: Date: Fri, 6 Feb 2009 19:54:56 +0100 (CET) From: "Gelsema, P \(Patrick\) - FreeBSD" To: freebsd-questions@freebsd.org User-Agent: SquirrelMail/1.4.17 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: /var grows, apache open file, which file? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Feb 2009 18:55:01 -0000 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