I'm not sure I'd mess with the GC settings, but you can add remote JMX
monitoring. This is that I use in prod (using catalina.sh) for TomEE 7:

export JAVA_HOME=/opt/jdk1.8.0
export CATALINA_HOME=/opt/tomcat
export CATALINA_OPTS="-Xmx2g -Dfile.encoding=UTF-8
-Djava.awt.headless=true -Djava.rmi.server.hostname=your.dns.name
-Dcom.sun.management.jmxremote.login.config=Tomcat
-Djava.security.auth.login.config=$CATALINA_HOME/conf/login.config
-Dcom.sun.management.jmxremote.access.file=$CATALINA_HOME/conf/jmxremote.access
-Dcom.sun.management.jmxremote.ssl=false"

login.config:

Tomcat { /* Should match to the com.sun.management.jmxremote.login.config
property */

   /* LDAP OU */
    com.sun.security.auth.module.LdapLoginModule REQUIRED
    userProvider="ldaps://your.ldap.server:636"
    authIdentity="cn={USERNAME},ou=Corp,ou=Development,ou=People"
    authzIdentity="admin"
    useSSL=false
    debug=false;
};

jmxremote.access:

admin readwrite

Download from http://tomcat.apache.org/download-80.cgi and put jar in
TOMEE_HOME/lib.

Add to server.xml:

<Listener className="org.apache.catalina.mbeans.JmxRemoteLifecycleListener"
rmiRegistryPortPlatform="8004" rmiServerPortPlatform="8004"/>


On Thu, Jul 28, 2016 at 10:23 AM, Felipe Jaekel <fkjae...@gmail.com> wrote:

> Hi,
>
> I used to run TomEE 1.7.2 with java 7 and the following config:
> -Xms1G
> -Xmx3G (server has 4G)
> -XX:MaxPermSize=1G
> -XX:+UseTLAB
> -XX:+UseConcMarkSweepGC
> -XX:+CMSIncrementalMode
> -XX:+CMSClassUnloadingEnabled
>
> I upgraded to Java 8 to use TomEE 7.0.x, so I decided to try different
> settings:
> -Xmx3G (server has 4G)
> -XX:+UseG1GC
> -XX:+UseStringDeduplication
>
> Are these good settings? What do you recommend?
>
> Thanks
>



-- 
Steven P. Goldsmith

Reply via email to