[Resin-interest] Slow Alarm?

2012-04-24 Thread Rick Mann
I think there was some stuff about this before, but what is the Slow Alarm warning in the logs? I see a lot of this after my resin instance has been running on my MacBook Pro (Lion) for a day or more. I often close the lid to sleep it while I transport it. I get entries like this: [12-04-24

[Resin-interest] Out of PermGen space

2012-04-24 Thread Rick Mann
When I'm making changes to the code of a webapp, Resin kindly reloads it for me. I can usually get a handful of reloads in before Resin complains about being out of PermGen space. Is there something I'm doing wrong in my app that it leaks like this? -- Rick

Re: [Resin-interest] Out of PermGen space

2012-04-24 Thread Olaf Krische
On 24.04.2012 22:54, Rick Mann wrote: When I'm making changes to the code of a webapp, Resin kindly reloads it for me. I can usually get a handful of reloads in before Resin complains about being out of PermGen space. Is there something I'm doing wrong in my app that it leaks like this?

Re: [Resin-interest] Out of PermGen space

2012-04-24 Thread Rick Mann
On Apr 24, 2012, at 14:32 , Olaf Krische wrote: On 24.04.2012 22:54, Rick Mann wrote: When I'm making changes to the code of a webapp, Resin kindly reloads it for me. I can usually get a handful of reloads in before Resin complains about being out of PermGen space. Is there something

Re: [Resin-interest] Out of PermGen space

2012-04-24 Thread Chris Pratt
Well, yes and no. As I understand the problem, it really got bad around the Java 5 timeframe because of the addition of Enumerations to the language. What Resin does (and all auto-reloading Java containers do) is to create a ClassLoader that contains all the code for your application. When it

Re: [Resin-interest] Out of PermGen space

2012-04-24 Thread Bill Au
Out of PermGen space is almost always caused by a classloader leak which occurs when a webapp is reloaded. It could be caused by either your own code, third-party code, or in some case Java core classes. You need to take heap dumps before and after webapp reload and use a heap analyzer to see

Re: [Resin-interest] Resin Pro 4.0.24 w/Quercus trying to get MediaWiki 1.18.2 to work..

2012-04-24 Thread Michael Ludwig
Howard Leadmon schrieb am 23.04.2012 um 19:27 (-0400): At that point it put up a nice red stop symbol, and gave the following error: Your session data was lost! Check your php.ini and make sure session.save_path is set to an appropriate directory. Check the php-ini config section here:

Re: [Resin-interest] Out of PermGen space

2012-04-24 Thread Olaf Krische
Hello Chris, this actually makes me wonder: are enums eating so much space, especially when compared to those things, that you release with the classloader? Heard about this for the first time. Interesting. On 24.04.2012 23:41, Chris Pratt wrote: that, since Enumerations are guaranteed to

Re: [Resin-interest] Out of PermGen space

2012-04-24 Thread Scott Ferguson
On 04/24/2012 03:13 PM, Bill Au wrote: Out of PermGen space is almost always caused by a classloader leak which occurs when a webapp is reloaded. It could be caused by either your own code, third-party code, or in some case Java core classes. You need to take heap dumps before and after

[Resin-interest] Out of PermGen space

2012-04-24 Thread Mattias Jiderhamn
Hi Rick. After having had these issues for years, I started blogging about it and how to find classloader leaks [1]. I also compiled a list of API calls and third party libraries known to trigger these leaks [2], and as you can see, it is quite common both to cause these problems yourself and