Skip to main content

PCRegistry memory leak problem fix


Technote (troubleshooting)


Problem(Abstract)

There is an out of memory issue about PCRegistry memory leak when using MetaDataRepository preloading.This issue has been fixed in OpenJPA community. Please refer the jira https://issues.apache.org/jira/browse/OpenJPA-1670

Symptom

When using MetaDataRepository preloading the MetaDataRepository is registered twice as a RegisterClassListener with the PCRegistry but both registrations aren't removed when the EMF is closed. The heapdump file shows that org.apache.openjpa.enhance.PCRegistry has consumed over 80% of Java heap.


Resolving the problem

To fix this issue, please follow the instruction.

1. Download the patch.PCRegistryMemoryLeak.zipPCRegistryMemoryLeak.zip

2. Unzip the attached file into the WebSphere Application Server Community Edition installation directory, and ensure the files listed in the zip file to replace the ones in the server installation directory.

3. Start the server, for example,

<WAS_CE_HOME>\bin\startup.bat

<WAS_CE_HOME>/bin/startup.sh


Rate this page:

(0 users)Average rating

Copyright and trademark information

IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.

Rate this page:


(0 users)Average rating

Add comments

Document information

WebSphere Application Server Community Edition

OpenJPA


Software version:
2.1.1.4, 2.1.1.5, 2.1.1.6


Operating system(s):
AIX, Linux, Solaris, Windows


Software edition:
Elite, Enhanced, Entry


Reference #:
1619560


Modified date:
2012-12-20

Translate my page

Content navigation