From dev-return-37398-apmail-jackrabbit-dev-archive=jackrabbit.apache.org@jackrabbit.apache.org Thu Apr 4 12:13:03 2013 Return-Path: X-Original-To: apmail-jackrabbit-dev-archive@www.apache.org Delivered-To: apmail-jackrabbit-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 5EA36F479 for ; Thu, 4 Apr 2013 12:13:03 +0000 (UTC) Received: (qmail 19708 invoked by uid 500); 4 Apr 2013 12:13:02 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 19464 invoked by uid 500); 4 Apr 2013 12:13:02 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Delivered-To: moderator for dev@jackrabbit.apache.org Received: (qmail 14395 invoked by uid 99); 4 Apr 2013 12:11:20 -0000 X-ASF-Spam-Status: No, hits=-0.1 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of bernardo.dauria@uc3m.es designates 163.117.176.131 as permitted sender) X-uc3m-safe: yes From: Bernardo D'Auria Content-Type: multipart/alternative; boundary="Apple-Mail=_AB47721C-391C-4102-98A9-BB89FD23655F" Subject: jackrabbit small issue : java.lang.OutOfMemoryError: PermGen Message-Id: <21123809-35CE-4B84-939F-FEF87A3B62AC@uc3m.es> Date: Thu, 4 Apr 2013 14:10:52 +0200 To: dev@jackrabbit.apache.org Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) X-Mailer: Apple Mail (2.1503) X-Greylist: Sender IP whitelistedACL 138 matched, not delayed by milter-greylist-4.2.7 (smtp01.uc3m.es); Thu, 04 Apr 2013 14:10:52 +0200 (CEST) X-TM-AS-Product-Ver: IMSS-7.1.0.1224-7.0.0.1014-19768.001 X-TM-AS-Result: No--5.764-7.0-31-1 X-imss-scan-details: No--5.764-7.0-31-1 X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail=_AB47721C-391C-4102-98A9-BB89FD23655F Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 Hi to everybody , I'm currently developing a web server application in Tomcat that uses = jackrabbit. I've found a small issue that took me some time to solve and I would = like to tell you about it,=20 I do not know if it deserves to be identified as a small bug. You'll = tell me. I was frequently deploying and undeploying my application while = developing and after 4 or 5 deployment repetition Tomcat was issuing = the following error java.lang.OutOfMemoryError: PermGen In additionTomcat was revealing leaks in my undeployed application. I fixed the issued adding the line in the repository.xml file like shown in this part of xml code=20 The problem was due to the fact that the thread derby.antiGC was not = stopped. The issue is that the repository.xml was automatically generated by = Jackrabbit.=20 I would expect it should already include the shutdownOnClose set to = true. The Jackrabbit version I was using were different the last is 2.6.0 (and = earlier). I tried both with Tomcat 6 and 7 Best regards, Bernardo --=20 Departamento de Estad=EDstica Universidad Carlos III de Madrid Avda Universidad, 30 28911 Leganes (Madrid) Spain email: bernardo.dauria@uc3m.es home: www.est.uc3m.es/bdauria tel: + 34.91.624.8804 fax: + 34.91.624.9177 --Apple-Mail=_AB47721C-391C-4102-98A9-BB89FD23655F Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=iso-8859-1 Hi to = everybody ,
I'm currently developing a web server application in = Tomcat that uses jackrabbit.
I've found a small issue that = took me some time to solve and I would like to tell you about = it, 
I do not know if it deserves to be identified as a = small bug. You'll tell me.

I was frequently = deploying and undeploying my application while developing and = after 4 or 5 deployment  repetition  Tomcat was = issuing the following error
   java.lang.:
in the repository.xml file like shown in = this part of xml = code 

<PersistenceManager = class=3D"org.apache.jackrabbit.core.persistence.pool.DerbyPersistenceManag= er">
          <param = name=3D"url" = value=3D"jdbc:derby:${rep.home}/version/db;create=3Dtrue"/>
&= nbsp;         <param name=3D"schemaObjectPrefix" = value=3D"version_"/>
          = <param name=3D"shutdownOnClose" = value=3D"true"/>
</PersistenceManager>
=
The problem was due to the fact that = the thread derby.antiGC was not = stopped.

The issue is that the = repository.xml was automatically generated by = Jackrabbit. 
I would expect it should already include = the shutdownOnClose set to = true.

The Jackrabbit version I was using = were different the last is 2.6.0 (and earlier).
I tried = both with Tomcat 6 and 7

Best = regards,

bernardo.dauria@uc3m.es
hom= e: www.est.uc3m.es/bdauria
tel= : + 34.91.624.8804
fax: + 34.91.624.9177

= --Apple-Mail=_AB47721C-391C-4102-98A9-BB89FD23655F--