Return-Path: X-Original-To: apmail-logging-log4net-user-archive@www.apache.org Delivered-To: apmail-logging-log4net-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DAA82E0F8 for ; Sat, 25 May 2013 13:28:42 +0000 (UTC) Received: (qmail 62810 invoked by uid 500); 25 May 2013 13:28:42 -0000 Delivered-To: apmail-logging-log4net-user-archive@logging.apache.org Received: (qmail 62477 invoked by uid 500); 25 May 2013 13:28:41 -0000 Mailing-List: contact log4net-user-help@logging.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Log4NET User" List-Id: Delivered-To: mailing list log4net-user@logging.apache.org Received: (qmail 62447 invoked by uid 99); 25 May 2013 13:28:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 25 May 2013 13:28:40 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= X-Spam-Check-By: apache.org Received-SPF: error (athena.apache.org: local policy) Received: from [88.84.128.168] (HELO samaflost.de) (88.84.128.168) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 25 May 2013 13:28:34 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by samaflost.de (Postfix) with ESMTP id 043D6129E0026 for ; Sat, 25 May 2013 15:27:52 +0200 (CEST) Received: from samaflost.de ([127.0.0.1]) by localhost (v35516.1blu.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QFAQBxbDMGyC for ; Sat, 25 May 2013 15:27:51 +0200 (CEST) Received: by samaflost.de (Postfix, from userid 1000) id B879B129E01D6; Sat, 25 May 2013 15:27:51 +0200 (CEST) From: Stefan Bodewig To: "Log4NET User" Subject: Re: log4net.dll version 1.2.10.0 (FileSystemWatcher objects) References: <75CF8BEDFEE65A4981D0AEFF27D7D7CE1383667C@WHVEXMBX2.corp.msi.michaels.com> Date: Sat, 25 May 2013 15:27:51 +0200 In-Reply-To: <75CF8BEDFEE65A4981D0AEFF27D7D7CE1383667C@WHVEXMBX2.corp.msi.michaels.com> (Yuvraj Raj's message of "Thu, 23 May 2013 18:26:02 +0000") Message-ID: <87ppwfp4tk.fsf@v35516.1blu.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Virus-Checked: Checked by ClamAV on apache.org Hi Yuvraj On 2013-05-23, Yuvraj Raj wrote: > From the memory dump, They found >2000 instances of > log4net.Config.XmlConfigurator+ConfigureAndWatchHandler and the > FileSystemWatcher objects created that contributed this issue. The > issue is happening due to the fragmentation of Gen2 Heap. The reason > for the fragmentation is the pinned System.IO.Overlapped objects used > by FileSystemWatcher objects. > When looking at the log4net.dll help from Apache web page, we found > the below link for log4net that have bug (LOG4NET-158) in version > 1.2.10.0 saying XmlConfigurator.ConfigureAndWatch() leaks resources if > called multiple times > The issue was fixed in version 1.2.11.0. Please let us know if above > memory issue was related to the bug and it has been resolved in the > next release. To be honest, we don't know for sure. Without knowing exactly how the many instances have been created in your case, it is hard to answer. If you had been invoking ConfigureAndWatch multiple times, then yes, this is likely fixed now. BTW, 1.2.11 has been released something like 20 months ago, so you may want to give it a try. Stefan