[opencms-dev] Problem with lucene - Old Generation Memory

Deiverson Silveira deiverson at solutioncms.com
Fri Apr 10 16:52:58 CEST 2015


Hi List,

Resolved that problem stable and performance.

This is (4 problems):
OpenCms 8.5.2 use JTDS 1.2.2, library old (2005) for connection SQL Server
2008... Related problem http://sourceforge.net/p/jtds/bugs/562/ - Report de
memory leak. I suggest Alkacon update for recent driver, we are using the
latest jdbc drive released by microsoft and greatly improved performance

Exist problem in configuration persistence OpenJPA in OpenCms 8.5.2, in
\WEB-INF\classes\META-INF\persistence.xml
Strict parameterization of OpenJPA of caches - the SoftReferences cache can
grow infinitely if not parameterized, we need change:
<!-- *** OpenJPA Query cache configuration *** -->
<property name="openjpa.QueryCompilationCache" value="true(CacheSize=100,
SoftReferenceSize=0)"/>
<property name="openjpa.jdbc.QuerySQLCache" value="true(CacheSize=100,
SoftReferenceSize=0)"/>

<!-- *** OpenJPA Data cache configuration *** -->
<property name-"openjpa.DataCache" value="true(CacheSize=1000,
SoftReferenceSize=0, EvictionSchedule='0 22 * * *')"/>
<property name="openjpa.DataCacheManager" value="ehcache(CacheSize=1000,
SoftReferenceSize=0)"/>

Change JVM for:
-server -Xms1536M -Xmx4096M -XX:PermSize=256M -XX:MaxPermSize=256M
-XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled
-XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=75
-XX:+ScavengeBeforeFullGC -XX:+CMSScavengeBeforeRemark

And change JDK 1.8.0_40.

Every passing day environment shown stable and solidifies the idea that the
problem was overcome.

Regards!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20150410/c1d1ed2b/attachment.htm>


More information about the opencms-dev mailing list