Return-Path: X-Original-To: apmail-chemistry-dev-archive@www.apache.org Delivered-To: apmail-chemistry-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 971D7DFAA for ; Wed, 15 May 2013 14:41:09 +0000 (UTC) Received: (qmail 28838 invoked by uid 500); 15 May 2013 14:41:09 -0000 Delivered-To: apmail-chemistry-dev-archive@chemistry.apache.org Received: (qmail 28782 invoked by uid 500); 15 May 2013 14:41:09 -0000 Mailing-List: contact dev-help@chemistry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@chemistry.apache.org Delivered-To: mailing list dev@chemistry.apache.org Received: (qmail 28773 invoked by uid 99); 15 May 2013 14:41:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 May 2013 14:41:09 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_HELO_PASS X-Spam-Check-By: apache.org Received-SPF: error (athena.apache.org: local policy) Received: from [92.51.170.73] (HELO server02.mc0.hosteurope.de) (92.51.170.73) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 May 2013 14:41:05 +0000 Received: from server04.webmailer.hosteurope.de ([10.9.0.183]); by mailout.hosteurope.de (server02.mc0.hosteurope.de) running EXperimental Internet Mailer with esmtps (TLSv1:AES256-SHA:256) id 1UccsR-0002ze-8W; Wed, 15 May 2013 16:40:23 +0200 Received: from nobody by server04.webmailer.hosteurope.de with local (Exim 4.72) (envelope-from ) id 1UccsR-0008WJ-7D; Wed, 15 May 2013 16:40:23 +0200 To: Subject: Re: Memory leak in DotCMIS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Wed, 15 May 2013 16:40:23 +0200 From: =?UTF-8?Q?Florian_M=C3=BCller?= Cc: =?UTF-8?Q?Bj=C3=B6rn_Kremer?= In-Reply-To: <51938404.4080906@patorg.de> References: <51938404.4080906@patorg.de> Message-ID: X-Sender: fmui@apache.org User-Agent: Host Europe Webmailer/2.0 X-HE-Access: Yes X-bounce-key: webpack.hosteurope.de;fmui@apache.org;1368628823;abe8f0c6; X-Virus-Checked: Checked by ClamAV on apache.org Hi Björn, I have checked in a fix for this issue. It works here for me. Could you please verify if it solves your problem? If so, we can close the JIRA issue. Thanks, Florian > Hello, > > I have just found a serious memory leak in dotcmis. The function > "DeserializeElement" in converter.cs is leaking. I have tried to load > a type definition multiple times without reusing the session > object.(I > have always created a new one.) The type definition contains a large > set of "choices". Doing so will flood the memory. The memory leak is > located in the XmlSerializer constructor. Please take a look at this > article describing the issue: http://www-jo.se/f.pfleger/memoryleak > Microsofts suggestion is to reuse the XmlSerializer class or to use > another constructor. > > Thank You > Björn