Hi David, FinalizingBrokerImpl will close itself and free resources when it's GC'ed. It sounds like something else is holding on to a lot of references to FBImpl (I'd guess something changed "upstream").
One cause is if the application creates a large number of EntityManagers and doesn't close them (or creates a large number of EMFactories which don't get closed since closing an EMF will close its EMs). Did anything else change or did you just upgrade OpenJPA versions? -mike On Mon, Jul 13, 2009 at 11:34 AM, David Minor <davemi...@gmail.com> wrote: > Upgrading openjpa from 1.0.1 to 1.2.1 seems to introduce a memory leak > in our application -- leaving the server running for a few days > results in OOM errors (there are quartz tasks making simple openjpa > selects during this time). A heap dump reveals > org.apache.openjpa.kernel.FinalizingBrokerImpl as the dominant object, > according to Eclipse's memory analysis plugin. > > Does anyone have an idea of what might be causing this? > > -- > _____________ > David Minor >