Return-Path: X-Original-To: apmail-jackrabbit-oak-dev-archive@minotaur.apache.org Delivered-To: apmail-jackrabbit-oak-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 530BFC0E5 for ; Mon, 7 May 2012 10:24:13 +0000 (UTC) Received: (qmail 20624 invoked by uid 500); 7 May 2012 10:24:13 -0000 Delivered-To: apmail-jackrabbit-oak-dev-archive@jackrabbit.apache.org Received: (qmail 20593 invoked by uid 500); 7 May 2012 10:24:12 -0000 Mailing-List: contact oak-dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: oak-dev@jackrabbit.apache.org Delivered-To: mailing list oak-dev@jackrabbit.apache.org Received: (qmail 20576 invoked by uid 99); 7 May 2012 10:24:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 May 2012 10:24:12 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 May 2012 10:24:11 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 3CBB54371CD for ; Mon, 7 May 2012 10:23:51 +0000 (UTC) Date: Mon, 7 May 2012 10:23:51 +0000 (UTC) From: "Jukka Zitting (JIRA)" To: oak-dev@jackrabbit.apache.org Message-ID: <14973903.33715.1336386231411.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <2108466378.20935.1336031534116.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (OAK-82) Running MicroKernelIT test with the InMem persistence creates a lot of GC threads 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/OAK-82?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13269496#comment-13269496 ] Jukka Zitting commented on OAK-82: ---------------------------------- There was actually a rationale behind this apparently buggy behavior. :-) My idea from OAK-31 was to have a default MicroKernelImpl constructor that creates an in-memory kernel instance that doesn't use any extra resources like background threads: {code:java} /** * Creates a new in-memory kernel instance that doesn't need to be * explicitly closed, i.e. standard Java garbage collection will take * care of releasing any acquired resources when no longer needed. * Useful especially for test cases and other similar scenarios. */ public MicroKernelImpl() { this(new Repository()); } {code} The use case for this is that you can then freely create any number of such instances for test purposes and simply let the standard Java garbage collector deal with them once no longer used without worrying about proper resource cleanup. I think that use case is still useful, so I adjusted the initialization code a bit in revision 1334949 so that the MK garbage collector doesn't get started when the above constructor is used. > Running MicroKernelIT test with the InMem persistence creates a lot of GC threads > --------------------------------------------------------------------------------- > > Key: OAK-82 > URL: https://issues.apache.org/jira/browse/OAK-82 > Project: Jackrabbit Oak > Issue Type: Bug > Affects Versions: 0.1 > Reporter: Dominique Pfister > Priority: Minor > Fix For: 0.2.1 > > > This is caused by MicroKernelImplFixture not disposing the MK instances it created -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira