jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torgeir Veimo <torgeir.ve...@gmail.com>
Subject Re: jackrabbit small issue : java.lang.OutOfMemoryError: PermGen
Date Thu, 04 Apr 2013 12:18:39 GMT
This is with jackrabbit 2.6.0? There's no such property on
org.apache.jackrabbit.core.persistence.pool.DerbyPersistenceManager in
2.5.2 at least.

On Thu, Apr 4, 2013 at 10:10 PM, Bernardo D'Auria
<bernardo.dauria@uc3m.es> wrote:
> 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.OutOfMemoryError: PermGen
> In additionTomcat was revealing leaks in my undeployed application.
>
> I fixed the issued adding the line
> <param name="shutdownOnClose" value="true"/>
> in the repository.xml file like shown in this part of xml code
>
> <PersistenceManager
> class="org.apache.jackrabbit.core.persistence.pool.DerbyPersistenceManager">
>           <param name="url"
> value="jdbc:derby:${rep.home}/version/db;create=true"/>
>           <param name="schemaObjectPrefix" value="version_"/>
>           <param name="shutdownOnClose" value="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
>
> --
> Departamento de Estadística
> 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
>



-- 
-Tor

Mime
View raw message