File tree Expand file tree Collapse file tree 4 files changed +16
-4
lines changed
apollo-adminservice/src/main/scripts
apollo-configservice/src/main/scripts
apollo-portal/src/main/scripts Expand file tree Collapse file tree 4 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
SERVICE_NAME=apollo-adminservice
3
+ # # Adjust log dir if necessary
3
4
LOG_DIR=/opt/logs/100003172
5
+ # # Adjust server port if necessary
4
6
SERVER_PORT=8090
5
7
8
+ # # Adjust memory settings if necessary
6
9
export JAVA_OPTS=" -server -Xms2560m -Xmx2560m -Xss256k -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=384m -XX:NewSize=1024m -XX:MaxNewSize=1024m -XX:SurvivorRatio=22"
7
10
8
11
# ########## The following is the same for configservice, adminservice, portal ###########
9
- export JAVA_OPTS=" $JAVA_OPTS -XX:+UseParNewGC -XX:ParallelGCThreads=4 -XX:MaxTenuringThreshold=9 -XX:+UseConcMarkSweepGC -XX:+DisableExplicitGC -XX:+UseCMSInitiatingOccupancyOnly -XX:+ScavengeBeforeFullGC -XX:+UseCMSCompactAtFullCollection -XX:+CMSParallelRemarkEnabled -XX:CMSFullGCsBeforeCompaction=9 -XX:CMSInitiatingOccupancyFraction=60 -XX:+CMSClassUnloadingEnabled -XX:SoftRefLRUPolicyMSPerMB=0 -XX:-ReduceInitialCardMarks -XX:+CMSPermGenSweepingEnabled -XX:CMSInitiatingPermOccupancyFraction=70 -XX:+ExplicitGCInvokesConcurrent -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCApplicationConcurrentTime -XX:+PrintHeapAtGC -XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow -Duser.timezone=Asia/Shanghai -Dclient.encoding.override=UTF-8 -Dfile.encoding=UTF-8 -Xloggc:$LOG_DIR /heap_trace.txt -XX:HeapDumpPath=$LOG_DIR /HeapDumpOnOutOfMemoryError/ -Djava.security.egd=file:/dev/./urandom"
12
+ export JAVA_OPTS=" $JAVA_OPTS -XX:+UseParNewGC -XX:ParallelGCThreads=4 -XX:MaxTenuringThreshold=9 -XX:+UseConcMarkSweepGC -XX:+DisableExplicitGC -XX:+UseCMSInitiatingOccupancyOnly -XX:+ScavengeBeforeFullGC -XX:+UseCMSCompactAtFullCollection -XX:+CMSParallelRemarkEnabled -XX:CMSFullGCsBeforeCompaction=9 -XX:CMSInitiatingOccupancyFraction=60 -XX:+CMSClassUnloadingEnabled -XX:SoftRefLRUPolicyMSPerMB=0 -XX:-ReduceInitialCardMarks -XX:+CMSPermGenSweepingEnabled -XX:CMSInitiatingPermOccupancyFraction=70 -XX:+ExplicitGCInvokesConcurrent -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCApplicationConcurrentTime -XX:+PrintHeapAtGC -XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow -Duser.timezone=Asia/Shanghai -Dclient.encoding.override=UTF-8 -Dfile.encoding=UTF-8 -Djava.security.egd=file:/dev/./urandom"
13
+ export JAVA_OPTS=" $JAVA_OPTS -Dserver.port=$SERVER_PORT -Dlogging.file=$LOG_DIR /$SERVICE_NAME .log -Xloggc:$LOG_DIR /heap_trace.txt -XX:HeapDumpPath=$LOG_DIR /HeapDumpOnOutOfMemoryError/"
10
14
11
15
PATH_TO_JAR=$SERVICE_NAME " .jar"
12
16
SERVER_URL=" http://localhost:$SERVER_PORT "
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
SERVICE_NAME=apollo-configservice
3
+ # # Adjust log dir if necessary
3
4
LOG_DIR=/opt/logs/100003171
5
+ # # Adjust server port if necessary
4
6
SERVER_PORT=8080
5
7
8
+ # # Adjust memory settings if necessary
6
9
export JAVA_OPTS=" -server -Xms5632m -Xmx5632m -Xss256k -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=384m -XX:NewSize=2560m -XX:MaxNewSize=2560m -XX:SurvivorRatio=22"
7
10
8
11
# ########## The following is the same for configservice, adminservice, portal ###########
9
- export JAVA_OPTS=" $JAVA_OPTS -XX:+UseParNewGC -XX:ParallelGCThreads=4 -XX:MaxTenuringThreshold=9 -XX:+UseConcMarkSweepGC -XX:+DisableExplicitGC -XX:+UseCMSInitiatingOccupancyOnly -XX:+ScavengeBeforeFullGC -XX:+UseCMSCompactAtFullCollection -XX:+CMSParallelRemarkEnabled -XX:CMSFullGCsBeforeCompaction=9 -XX:CMSInitiatingOccupancyFraction=60 -XX:+CMSClassUnloadingEnabled -XX:SoftRefLRUPolicyMSPerMB=0 -XX:-ReduceInitialCardMarks -XX:+CMSPermGenSweepingEnabled -XX:CMSInitiatingPermOccupancyFraction=70 -XX:+ExplicitGCInvokesConcurrent -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCApplicationConcurrentTime -XX:+PrintHeapAtGC -XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow -Duser.timezone=Asia/Shanghai -Dclient.encoding.override=UTF-8 -Dfile.encoding=UTF-8 -Xloggc:$LOG_DIR /heap_trace.txt -XX:HeapDumpPath=$LOG_DIR /HeapDumpOnOutOfMemoryError/ -Djava.security.egd=file:/dev/./urandom"
12
+ export JAVA_OPTS=" $JAVA_OPTS -XX:+UseParNewGC -XX:ParallelGCThreads=4 -XX:MaxTenuringThreshold=9 -XX:+UseConcMarkSweepGC -XX:+DisableExplicitGC -XX:+UseCMSInitiatingOccupancyOnly -XX:+ScavengeBeforeFullGC -XX:+UseCMSCompactAtFullCollection -XX:+CMSParallelRemarkEnabled -XX:CMSFullGCsBeforeCompaction=9 -XX:CMSInitiatingOccupancyFraction=60 -XX:+CMSClassUnloadingEnabled -XX:SoftRefLRUPolicyMSPerMB=0 -XX:-ReduceInitialCardMarks -XX:+CMSPermGenSweepingEnabled -XX:CMSInitiatingPermOccupancyFraction=70 -XX:+ExplicitGCInvokesConcurrent -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCApplicationConcurrentTime -XX:+PrintHeapAtGC -XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow -Duser.timezone=Asia/Shanghai -Dclient.encoding.override=UTF-8 -Dfile.encoding=UTF-8 -Djava.security.egd=file:/dev/./urandom"
13
+ export JAVA_OPTS=" $JAVA_OPTS -Dserver.port=$SERVER_PORT -Dlogging.file=$LOG_DIR /$SERVICE_NAME .log -Xloggc:$LOG_DIR /heap_trace.txt -XX:HeapDumpPath=$LOG_DIR /HeapDumpOnOutOfMemoryError/"
10
14
11
15
PATH_TO_JAR=$SERVICE_NAME " .jar"
12
16
SERVER_URL=" http://localhost:$SERVER_PORT "
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
SERVICE_NAME=apollo-portal
3
+ # # Adjust log dir if necessary
3
4
LOG_DIR=/opt/logs/100003173
5
+ # # Adjust server port if necessary
4
6
SERVER_PORT=8080
5
7
8
+ # # Adjust memory settings if necessary
6
9
export JAVA_OPTS=" -server -Xms4096m -Xmx4096m -Xss256k -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=384m -XX:NewSize=1536m -XX:MaxNewSize=1536m -XX:SurvivorRatio=22"
7
10
8
11
# ########## The following is the same for configservice, adminservice, portal ###########
9
- export JAVA_OPTS=" $JAVA_OPTS -XX:+UseParNewGC -XX:ParallelGCThreads=4 -XX:MaxTenuringThreshold=9 -XX:+UseConcMarkSweepGC -XX:+DisableExplicitGC -XX:+UseCMSInitiatingOccupancyOnly -XX:+ScavengeBeforeFullGC -XX:+UseCMSCompactAtFullCollection -XX:+CMSParallelRemarkEnabled -XX:CMSFullGCsBeforeCompaction=9 -XX:CMSInitiatingOccupancyFraction=60 -XX:+CMSClassUnloadingEnabled -XX:SoftRefLRUPolicyMSPerMB=0 -XX:-ReduceInitialCardMarks -XX:+CMSPermGenSweepingEnabled -XX:CMSInitiatingPermOccupancyFraction=70 -XX:+ExplicitGCInvokesConcurrent -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCApplicationConcurrentTime -XX:+PrintHeapAtGC -XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow -Duser.timezone=Asia/Shanghai -Dclient.encoding.override=UTF-8 -Dfile.encoding=UTF-8 -Xloggc:$LOG_DIR /heap_trace.txt -XX:HeapDumpPath=$LOG_DIR /HeapDumpOnOutOfMemoryError/ -Djava.security.egd=file:/dev/./urandom"
12
+ export JAVA_OPTS=" $JAVA_OPTS -XX:+UseParNewGC -XX:ParallelGCThreads=4 -XX:MaxTenuringThreshold=9 -XX:+UseConcMarkSweepGC -XX:+DisableExplicitGC -XX:+UseCMSInitiatingOccupancyOnly -XX:+ScavengeBeforeFullGC -XX:+UseCMSCompactAtFullCollection -XX:+CMSParallelRemarkEnabled -XX:CMSFullGCsBeforeCompaction=9 -XX:CMSInitiatingOccupancyFraction=60 -XX:+CMSClassUnloadingEnabled -XX:SoftRefLRUPolicyMSPerMB=0 -XX:-ReduceInitialCardMarks -XX:+CMSPermGenSweepingEnabled -XX:CMSInitiatingPermOccupancyFraction=70 -XX:+ExplicitGCInvokesConcurrent -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCApplicationConcurrentTime -XX:+PrintHeapAtGC -XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow -Duser.timezone=Asia/Shanghai -Dclient.encoding.override=UTF-8 -Dfile.encoding=UTF-8 -Djava.security.egd=file:/dev/./urandom"
13
+ export JAVA_OPTS=" $JAVA_OPTS -Dserver.port=$SERVER_PORT -Dlogging.file=$LOG_DIR /$SERVICE_NAME .log -Xloggc:$LOG_DIR /heap_trace.txt -XX:HeapDumpPath=$LOG_DIR /HeapDumpOnOutOfMemoryError/"
10
14
11
15
PATH_TO_JAR=$SERVICE_NAME " .jar"
12
16
SERVER_URL=" http://localhost:$SERVER_PORT "
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ echo "==== building portal finished ===="
36
36
37
37
echo " ==== starting to build client ===="
38
38
39
- mvn clean install -DskipTests -pl apollo-client -am -Pgithub $META_SERVERS_OPTS
39
+ mvn clean install -DskipTests -pl apollo-client -am $META_SERVERS_OPTS
40
40
41
41
echo " ==== building client finished ===="
42
42
You can’t perform that action at this time.
0 commit comments