OpenJPA Performance Guide
OpenJPA has numerous configuration properties that apply to many different use cases. The complete list of properties can be found in the most current user manual. The remainder of this guide is going to walk through the properties that will generally provide the most performance improvement.
Caching
DataCache
QueryCache
JPA 2.0 Caching
Using MBean performance monitor
Database Connection Pooling
Enhancement
MetaDataRepository