From dev-return-30634-apmail-directory-dev-archive=directory.apache.org@directory.apache.org Fri Jun 19 11:01:23 2009 Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 8587 invoked from network); 19 Jun 2009 11:01:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 19 Jun 2009 11:01:18 -0000 Received: (qmail 64170 invoked by uid 500); 19 Jun 2009 11:01:30 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 64083 invoked by uid 500); 19 Jun 2009 11:01:29 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 64075 invoked by uid 99); 19 Jun 2009 11:01:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Jun 2009 11:01:29 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Jun 2009 11:01:27 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9D4AA234C044 for ; Fri, 19 Jun 2009 04:01:07 -0700 (PDT) Message-ID: <1288296541.1245409267600.JavaMail.jira@brutus> Date: Fri, 19 Jun 2009 04:01:07 -0700 (PDT) From: "Emmanuel Lecharny (JIRA)" To: dev@directory.apache.org Subject: [jira] Updated: (DIRSERVER-644) Memory Leak in Persistent search ? In-Reply-To: <32807071.1150180769879.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DIRSERVER-644?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Emmanuel Lecharny updated DIRSERVER-644: ---------------------------------------- Affects Version/s: 1.5.4 Fix Version/s: (was: 1.0-RC4) 1.5.5 > Memory Leak in Persistent search ? > ---------------------------------- > > Key: DIRSERVER-644 > URL: https://issues.apache.org/jira/browse/DIRSERVER-644 > Project: Directory ApacheDS > Issue Type: Bug > Components: core > Affects Versions: 1.5.4, 1.0-RC3 > Reporter: Emmanuel Lecharny > Priority: Blocker > Fix For: 1.5.5 > > Attachments: SearchTest.java > > > After having profiled memory, it seems we have a memory leak in SessionRegistry. > A little test (attached) does a search N times for N threads, and for each search, a OutstandingRequest is attached to the session. After a few thousands of search we fall in OOM. I've put some trace in those methods : > SessionRegistry.addOutstandingRequest > and > SessionRegistry.removeOutstandingRequest > Session Released > addOutstandingRequest 2 > addOutstandingRequest 3 > addOutstandingRequest 4 > ... ( 100 requests) > addOutstandingRequest 99 > addOutstandingRequest 100 > addOutstandingRequest 101 > remove session > The SessionRegistry.removeOutstandingRequest is never called, except if an exception is raised (NamingException). > It may be on purpose ( persistent search), but we can't assume the server will be able to hold as many OutstandingRequest as we have search requests - or entries -. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.