-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/47497/
-----------------------------------------------------------

Review request for Ambari.


Bugs: AMBARI-16691
    https://issues.apache.org/jira/browse/AMBARI-16691


Repository: ambari


Description
-------

In ATLAS-616, we uncovered problems with Atlas web service when testing queries 
at scale. The investigation revealed a fix possible with tuning some GC 
parameters. ATLAS-616 suggests the GC values in documentation.

Default these settings in Ambari.

The values we have recommended are all to be set in atlas-env.sh config file. 
They are:

Common for all JDKs:

    #export ATLAS_SERVER_OPTS="-server -XX:SoftRefLRUPolicyMSPerMB=0 
-XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC 
-XX:+CMSParallelRemarkEnabled -XX:+PrintTenuringDistribution 
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=dumps/atlas_server.hprof 
-Xloggc:logs/gc-worker.log -verbose:gc -XX:+UseGCLogFileRotation 
-XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=1m -XX:+PrintGCDetails 
-XX:+PrintHeapAtGC -XX:+PrintGCTimeStamps"


For JDK7:

    #export ATLAS_SERVER_HEAP="-Xms15360m -Xmx15360m -XX:MaxNewSize=3072m 
-XX:PermSize=100M -XX:MaxPermSize=512m"


For JDK8:

    #export ATLAS_SERVER_HEAP="-Xms15360m -Xmx15360m -XX:MaxNewSize=5120m 
-XX:MetaspaceSize=100M -XX:MaxMetaspaceSize=512m"


Diffs
-----

  
ambari-server/src/main/resources/common-services/ATLAS/0.1.0.2.3/package/scripts/params.py
 b33a956 
  
ambari-server/src/main/resources/stacks/HDP/2.5/services/ATLAS/configuration/atlas-env.xml
 bae4de3 
  ambari-server/src/main/resources/stacks/HDP/2.5/services/stack_advisor.py 
689e1fd 
  ambari-server/src/test/python/stacks/2.5/common/test_stack_advisor.py cf82a9c 

Diff: https://reviews.apache.org/r/47497/diff/


Testing
-------

manual test

updated unit test

mvn clean test


Thanks,

Tom Beerbower

Reply via email to