Combination View Flat View Tree View
Threads [ Previous | Next ]
Fabio Foglia
tomcat tuning
January 30, 2013 3:54 AM
Answer

Fabio Foglia

Rank: Junior Member

Posts: 61

Join Date: September 2, 2011

Recent Posts

Hello all,

I'm using LR 6.0.6 CE and I have a big resource problem.

It seems that cpu goes 100% un a server with 8 core and 12Gb ram.
My tomcat start params are follows as suggested in docs:

JAVA_OPTS="$JAVA_OPTS -server -d64 -XX:NewSize=3072m -XX:MaxNewSize=3072m -Xms7g -Xmx7g -XXemoticonermSize=200m -XX:MaxPermSize=512m -XX:SurvivorRatio=65536 -XX:TargetSurvivorRatio=0 -XX:MaxTenuringThreshold=0 -XX:+UseParNewGC -XXemoticonarallelGCThreads=16 -XX:+UseConcMarkSweepGC
-XX:+CMSParallelRemarkEnabled -XX:+CMSCompactWhenClearAllSoftRefs -XX:CMSInitiatingOccupancyFraction=85 -XX:+CMSScavengeBeforeRemark -XX:+UseCompressedOops -XX:+DisableExplicitGC -Duser.language=it -Duser.region=IT"

DB conf is:

<Context path="" crossContext="true">
<Resource
auth="Container"
description="Portal DB Connection"
driverClass="com.mysql.jdbc.Driver"
maxPoolSize="50"
minPoolSize="10"
acquireIncrement="5"
name="jdbc/Liferay60Pool"
user="XXXXX"
password="YYYYY"
factory="org.apache.naming.factory.BeanFactory"
type="com.mchange.v2.c3p0.ComboPooledDataSource"
jdbcUrl="jdbc:mysql://127.0.0.1:3306/XXXXX?useUnicode=true&amp;characterEncoding=UTF-8&amp;useFastDateParsing=false"/>
</Context>

server.xml (for ajp) is:
<Connector port="8009" protocol="AJP/1.3" maxHttpHeaderSize="8192" maxThreads="256" minSpareThreads="5" maxSpareThreads="20" enableLookups="false" acceptCount="100" redirectPort="8443" connectionTimeout="20000" disableUploadTimeout="true" URIEncoding="UTF-8"/>

I think the problem is the GC that is not tuned to clean heap.

Any suggest?

Thanks

Fabio