From owner-freebsd-stable@FreeBSD.ORG Thu May 3 22:55:53 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C88CA1065673 for ; Thu, 3 May 2012 22:55:53 +0000 (UTC) (envelope-from efraindector@motumweb.com) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 810848FC0C for ; Thu, 3 May 2012 22:55:53 +0000 (UTC) Received: by obcni5 with SMTP id ni5so3934395obc.13 for ; Thu, 03 May 2012 15:55:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:from:to:references:in-reply-to:subject:date:organization :mime-version:content-type:content-transfer-encoding:x-priority :x-msmail-priority:importance:x-mailer:x-mimeole:x-gm-message-state; bh=GBOaQtVPyPbkhWO22G95A8ZhKMCbe7R6++Wgm3+7DK0=; b=dGO9bNjVbnVaBKmk+wnm276spyAOHhyuLuvlMkItRR66sS4qr2QIMLm8aZalWewtla Am0GNXaE9EnBt9fnwADEymj4Pr/H4mIucLDksaLlf3eLSameFJh6pzBxx6mjiatMzWg/ OEItZDShwoeprAgL2HV0ubiZD+To0ifSzhu0afPj23mT8IutTijz8qnva15UTRxVWZ52 lEKamizJi+q4SM3uZgFEZPazfRJXgximas/o8fPAz+gsOr97Tl8Ep2Yu64nEr2LzFdPF ZDOm32DMRqxV/41swyYkTsmGKZBYCXxKhC7mkKNQOls2Oc/3m8TAl+ZQEzCC1qc4e2Qw Fd6Q== Received: by 10.60.22.138 with SMTP id d10mr5295624oef.69.1336085752767; Thu, 03 May 2012 15:55:52 -0700 (PDT) Received: from CMOTUM25PC ([189.130.181.109]) by mx.google.com with ESMTPS id n9sm5819138oen.2.2012.05.03.15.55.50 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 03 May 2012 15:55:51 -0700 (PDT) Message-ID: <47BB1C7132924E42AD623CEDEAE673EA@CMOTUM25PC> From: =?UTF-8?Q?Efra=C3=ADn_D=C3=A9ctor?= To: "Peter Maloney" , References: <4E9B7F6B991C46BF9CCBC03F72A56AFB@CMOTUM25PC><795E082973104798BB84124E63C556CB@CMOTUM25PC><4F9AB906.7000400@my.gd> <4F9E4937.7040000@brockmann-consult.de> In-Reply-To: <4F9E4937.7040000@brockmann-consult.de> Date: Thu, 3 May 2012 17:55:47 -0500 Organization: =?UTF-8?Q?HESA_T=C3=A9cnica?= MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="UTF-8"; reply-type=original Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 15.4.3555.308 X-MimeOLE: Produced By Microsoft MimeOLE V15.4.3555.308 X-Gm-Message-State: ALoCoQmoSvQme85OM9IHU73qrVYNd8GpTz3FvCz8CRzlFIo70+mjgMUTHARa8jYcVezDvDypz2oC Cc: Subject: Re: /var getting full X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 May 2012 22:55:54 -0000 Hello. I did not write the Java program. I've sent your recomendation to our programmers. Thank you. -----Mensaje original----- From: Peter Maloney Sent: Monday, April 30, 2012 3:11 AM To: freebsd-stable@freebsd.org Subject: Re: /var getting full Am 27.04.2012 17:26, schrieb Efraín Déctor: > Thank you all. > > I found out that a Java process was using all this space. I restarted > it and voilá problem solved. Did you write this Java program? If so, you probably need a finally block: File f = ... InputStream in = null; try { in = new FileInputStream(in); //whatever you do here, such as create a Reader, you keep a reference to the InputStream }finally{ //A finally is called regardless of what happens in the try. For example, if there is an Exception thrown, the finally is run anyway. Code at the end of the try is not called when an exception is thrown. if( in != null ) { //you must wrap this in a try{}catch(IOException){}, otherwise the rest of your finally is not run if it throws an Exception try{ in.close(); }catch(IOException e) { logger.log(Level.SEVERE, Failed to close InputStream", e); } } } > > > Thanks. > -----Mensaje original----- From: Tom Evans > Sent: Friday, April 27, 2012 10:22 AM > To: Damien Fleuriot > Cc: freebsd-stable@freebsd.org > Subject: Re: /var getting full > > On Fri, Apr 27, 2012 at 4:19 PM, Damien Fleuriot wrote: >> Type: >> sync >> >> >> Then: >> df -h >> >> Then: >> cd /var && du -hd 1 >> >> >> Post results. >> > > As well as this, any unlinked files that have file handles open by > running processes will not be accounted for in du, but will be counted > in df. You could try restarting services that write to /var. > > Cheers > > Tom > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"