0

I am writing a java api (reporting Api )that is exports a huge data from elastic search, I was test the code but I found many spikes in the Gc activities I need recommendations to tune the jvm params and the Gc prams

-verbose:gc -Xloggc:/opt/jboss/standalone/log/gc.log -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=3M -XX:-TraceClassUnloading -server -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:NewRatio=2 -Djava.net.preferIPv4Stack=true -Duser.timezone=GMT -XX:+CMSClassUnloadingEnabled -XX:+CMSParallelRemarkEnabled -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=70 -XX:+CMSClassUnloadingEnabled -XX:+ExplicitGCInvokesConcurrentAndUnloadsClasses -XX:+ScavengeBeforeFullGC -XX:+CMSScavengeBeforeRemark -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Dfile.io.encoding=UTF-8 -DjavaEncoding=UTF-8 -Xms2300m -Xmx2300m -XX:MaxMetaspaceSize=512m -XX:MetaspaceSize=256m -Dspring.profiles.active=loadtest -Dhttps.proxyHost=proxy.payfort.com -Dhttps.proxyPort=80 -Dhttp.proxyHost=proxy.payfort. Dorg.jboss.boot.log.file=/opt/jboss/standalone/log/server.log -Dlogging.configuration=file:/opt/jboss/standalone/configuration/logging.properties -jar /opt/jboss/jboss-modules.jar -mp /opt/jboss/modules org.jboss.as.standalone -Djboss.home.dir=/opt/jboss -Djboss.server.base.dir=/opt/jboss/standalone -c standalone.xml

enter image description here

4
  • Which Java version you are using? Are you settings any GC flags? Graph looks normal that is how GC is designed
    – Fairoz
    Commented Jul 13, 2017 at 17:32
  • I am using java 8 , no gc flags Commented Jul 13, 2017 at 21:42
  • Please provide query examples and used endpoints, index size and schema. Usually the problem is in incorrect api usage. In most cases it is enough to increase heap size Commented Jul 14, 2017 at 13:42
  • Also note that ES is information retrieval engine - this means it fast in case of search but not optimal in data extracting. Without technical details it is hard to provide any useful advise. Commented Jul 14, 2017 at 13:51

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.