Environment:

OJB:            1.0.3
JProfiler:      4.0.1
Tomcat:         5.0.19
JVM:            Sun 1.4.2_06-b03

While profiling our OJB application, we noticed that after we shut it
down in Tomcat, we had plenty of org.apache.ojb.broker.* and
org.apache.ojb.metadata.* objects left behind in memory. Using JProfiler
we tracked it down to several static variables not getting cleared out
including:

PersistenceBrokerFactoryFactory.singleton
MetadataManager.singleton
...several others...

Does anyone have any suggestions as to how to clean these up properly? I
looked for destroy methods and couldn't find any. As a test, I
downloaded the OJB source and added destroy methods to
PersistenceBrokerFactoryFactory & MetadataManager that I called from a
context listener and it worked ok. Really, really  don't want to do this
myself. I'm guessing I'm just overlooking some easy way for cleaning
these up already provided in OJB.

Any suggestions?

Thanks.

Bob Glugla
Boeing

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to