Return-Path: Delivered-To: apmail-incubator-clerezza-dev-archive@minotaur.apache.org Received: (qmail 15097 invoked from network); 17 Jan 2011 20:34:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Jan 2011 20:34:08 -0000 Received: (qmail 82105 invoked by uid 500); 17 Jan 2011 20:34:08 -0000 Delivered-To: apmail-incubator-clerezza-dev-archive@incubator.apache.org Received: (qmail 82064 invoked by uid 500); 17 Jan 2011 20:34:07 -0000 Mailing-List: contact clerezza-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: clerezza-dev@incubator.apache.org Delivered-To: mailing list clerezza-dev@incubator.apache.org Received: (qmail 82056 invoked by uid 99); 17 Jan 2011 20:34:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Jan 2011 20:34:07 +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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Jan 2011 20:34:06 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id p0HKXiNl022699 for ; Mon, 17 Jan 2011 20:33:44 GMT Message-ID: <8223608.21811295296424581.JavaMail.jira@thor> Date: Mon, 17 Jan 2011 15:33:44 -0500 (EST) From: =?utf-8?Q?Reto_Bachmann-Gm=C3=BCr_=28JIRA=29?= To: clerezza-dev@incubator.apache.org Subject: [jira] Commented: (CLEREZZA-395) bnodes mapping in JenaGraphAdaptor should not keep growing with every parsing of rdf files In-Reply-To: <4755559.351501294949328388.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CLEREZZA-395?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D12= 982852#action_12982852 ]=20 Reto Bachmann-Gm=C3=BCr commented on CLEREZZA-395: --------------------------------------------- Today I commit a change to the jena adapter so that existing bnodes or bnod= es produced by jena-parsers no longer cause an entry in the bidi-map. Anoth= er improvement that should be done is to keep only weak references in the b= idimap and discard map entries once the BNode-instances are no longer refer= enced. > bnodes mapping in JenaGraphAdaptor should not keep growing with every par= sing of rdf files > -------------------------------------------------------------------------= ----------------- > > Key: CLEREZZA-395 > URL: https://issues.apache.org/jira/browse/CLEREZZA-395 > Project: Clerezza > Issue Type: Improvement > Reporter: Hasan > Assignee: Hasan > > With every parsing of rdf files free memory is getting less. > The problem seems to lie in the JenaGraphAdaptor class > It has a member: > final BidiMap tria2JenaBNodes =3D new BidiMapImpl(); > which grows each time a serialized graph get parsed. > My experiments with my test data show > At the end of the 1st parsing: Size of tria2JenaBNodes =3D 87200 > At the end of the 2nd parsing: Size of tria2JenaBNodes =3D 130800 > At the end of the 3rd parsing: Size of tria2JenaBNodes =3D 174400 --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.