Re: Recommended Java 8 settings

2016-08-25 Thread Felipe Jaekel
Thanks for the replies, I made some sampling on VisualVM with -XX:+UseG1GC -XX:+UseStringDeduplication and Java 8 default. Results were pretty much the same, so I kept the Java 8 default. 2016-07-28 13:29 GMT-03:00 Howard W. Smith, Jr. : > My responses below/inline, > >

Re: Recommended Java 8 settings

2016-07-28 Thread Howard W. Smith, Jr.
My responses below/inline, On Thu, Jul 28, 2016 at 10:23 AM, Felipe Jaekel wrote: > 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 >

Re: Recommended Java 8 settings

2016-07-28 Thread Steve Goldsmith
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

Re: Recommended Java 8 settings

2016-07-28 Thread Romain Manni-Bucau
Hi Felipe, sure others will have idea on that but I would suggest you to choose based on figures extracted from scenarii runs representing your application use cases instead of trying to find a good absolute default. Romain Manni-Bucau @rmannibucau | Blog

Recommended Java 8 settings

2016-07-28 Thread Felipe Jaekel
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