geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ApolloX <sc...@selikoff.net>
Subject Tracking Down Memory Leaks in G1.2
Date Thu, 20 Mar 2008 00:24:17 GMT

I've noticed in most versions of Geronimo there appear to be memory leaks. 
For example, if I use the Hot Deployer to redeploy an EAR multiple times a
time on a development server, it often leads to OutOfMemory exceptions
regardless of how much the EAR is actually used.  In more general
environments, though, the server slowly accumulates memory until it requires
a restart every few days (or sooner).

I'm trying to address these issues by writing code that actively flushes any
static application objects and runs garbage collection after, but I haven't
had much success in decreasing memory over time.  Can someone provide me
with code that I can use to flush the EJB container cache?  If I can
actively flush that cache, at least I can rule out it for potential memory
leaks.

I'm using openejb+tranql+mysql, but my understanding is that the cache is
owned by openejb.  I've tried determining how to flush the EJB CMP2 cache
but I have yet to locate source code for openejb 2.2.   Anyone have any code
(or suggestions) for how to flush the CMP2 cache? 
-- 
View this message in context: http://www.nabble.com/Tracking-Down-Memory-Leaks-in-G1.2-tp16168531s134p16168531.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Mime
View raw message