Hi,

this is normal behaviour when using frameworks that create classes on the
fly - each loaded class takes a part of the permanent heap space (which does
not expand and doesn't reclaim memory after old classes unload). Both
Hibernate (entities) and Stripes-Reload (action beans) redefine classes when
necessary. What you can do is passing the JVM an -XX:MaxPermSize=256m option
(replacing 256 with the number of MBs you want to assign) - for Tomcat, you
change *CATALINA_HOME*/bin/setenv.sh (or .bat) to do so.

  Levi

On Wed, Feb 25, 2009 at 4:50 AM, AK <[email protected]> wrote:

> I'm developing an app using Tomcat and Stripersist (on HSQL) and notice
> that I sometimes get the following error:
>
> [22:37:14] WARN  org.stripesbook.reload.extensions.ReloadActionResolver  -
> ########################################################################
> [22:37:14] WARN  org.stripesbook.reload.extensions.ReloadActionResolver  -
> #
> Stripes-Reload                                                       #
> [22:37:14] WARN  org.stripesbook.reload.extensions.ReloadActionResolver  -
> #
> Enjoy developing with Stripes!                                       #
> [22:37:14] WARN  org.stripesbook.reload.extensions.ReloadActionResolver  -
> #
> Please don't forget to turn off Stripes-Reload in production.        #
> [22:37:14] WARN  org.stripesbook.reload.extensions.ReloadActionResolver  -
> # For
> more info, see http://www.stripesbook.org/stripes-reload.html    #
> [22:37:14] WARN  org.stripesbook.reload.extensions.ReloadActionResolver  -
> ########################################################################
> [22:37:15] WARN
> com.mchange.v2.c3p0.management.ActiveManagementCoordinator  - A
> C3P0Registry mbean is already registered. This probably means that an
> application using c3p0 was undeployed, but not all PooledDataSources were
> closed
> prior to undeployment. This may lead to resource leaks over time. Please
> take
> care to close all PooledDataSources.
> [22:37:17] ERROR org.stripesstuff.stripersist.Stripersist  -
> java.lang.OutOfMemoryError: PermGen space
>        at
>
> com.mchange.v2.resourcepool.BasicResourcePool.<init>(BasicResourcePool.java:271)
>        at
>
> com.mchange.v2.resourcepool.BasicResourcePoolFactory.createPool(BasicResourcePoolFactory.java:333)
>
> Is this possibly caused by the WARN message w/ the
> ActiveManagementCoordinator just prior to the error?  If so, any clues on
> how I should resolve that one?
>
>
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
> CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the
> Enterprise
> -Strategies to boost innovation and cut costs with open source
> participation
> -Receive a $600 discount off the registration fee with the source code:
> SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> Stripes-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to