cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Hipkiss <jonat...@hipkiss.org>
Subject Re: PermGen space problem with Cocoon on Tomcat
Date Sat, 21 Jul 2007 14:18:52 GMT
Do you know how much memory the machine has?  We were getting this on a 
Solaris 10 server with 1gb of Ram which we doubled and the problem went 
away.

Jonathan

Stephen Winnall wrote:
> Hi Antonio, Christoph
>
> I'm using Cocoon 2.1.9 on Tomcat 5.5.23 with Sun's Java 1.5.0_11-b03 
> on Linux 2.6.18-4-amd64 (not sure which distro: it's at my provider's 
> site).
>
> Christoph's suggestions tally with things I've discovered on the net 
> in the last couple of hours. I'll run them past my provider.
>
> Another possibility seems to be JDBC: if the jar file is under 
> WEB-INF/lib the garbage collector cannot release resources held by the 
> database. Guess where my postgresql.jar is...
>
> Part of my problem is that I develop under Mac OS X and just restart 
> Tomcat when things go wrong in my development environment: deploying 
> to a completely different platform is forcing me to be more rigorous.
>
> Steve
>
>
> On 20 Jul 2007, at 21:03, Antonio Gallardo wrote:
>
>> Hi Stephen, would you provide more info?
>>
>> Java version, cocoon version, tomcat version, OS, etc?
>>
>> Best Regards,
>>
>> Antonio Gallardo.
>>
>> Stephen Winnall escribió:
>>> I'm trying to deploy my Cocoon application in Tomcat and am getting 
>>> the following error:
>>>
>>>     java.lang.OutOfMemoryError: PermGen space
>>>
>>> Wisdom on the net has it that this happens as a result of large 
>>> memory leaks: if classes used in a servlet are referenced from 
>>> outside the servlet, the garbage collector cannot recycle them when 
>>> the application is undeployed; redeploying the application results 
>>> in the classes being loaded a further time, and so on until memory 
>>> runs out. I have looked in the Cocoon mailing lists for other 
>>> occurrences of this problem, but I've found nothing, so I assume the 
>>> problem is in one of the classes I wrote to extend my application.
>>>
>>> Does anyone have experience with tracking down this sort of problem 
>>> in Cocoon apps?
>>>
>>> Steve
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>> For additional commands, e-mail: users-help@cocoon.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>> For additional commands, e-mail: users-help@cocoon.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message