Merge pull request #335 from aloneboat/develop
Specify the garbage collector as the CMS
This commit is contained in:
commit
2ba66d0a6d
@ -112,7 +112,7 @@ Run the following command:
|
|||||||
## Common property configuration
|
## Common property configuration
|
||||||
|
|
||||||
| name | description | option |
|
| name | description | option |
|
||||||
|-------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||||
| MODE | cluster/standalone | cluster/standalone default **cluster** |
|
| MODE | cluster/standalone | cluster/standalone default **cluster** |
|
||||||
| NACOS_SERVERS | nacos cluster address | eg. ip1:port1 ip2:port2 ip3:port3 |
|
| NACOS_SERVERS | nacos cluster address | eg. ip1:port1 ip2:port2 ip3:port3 |
|
||||||
| PREFER_HOST_MODE | Whether hostname are supported | hostname/ip default **ip** |
|
| PREFER_HOST_MODE | Whether hostname are supported | hostname/ip default **ip** |
|
||||||
@ -125,8 +125,7 @@ Run the following command:
|
|||||||
| MYSQL_SERVICE_USER | username of database | |
|
| MYSQL_SERVICE_USER | username of database | |
|
||||||
| MYSQL_SERVICE_PASSWORD | password of database | |
|
| MYSQL_SERVICE_PASSWORD | password of database | |
|
||||||
| MYSQL_DATABASE_NUM | It indicates the number of database | default :**1** |
|
| MYSQL_DATABASE_NUM | It indicates the number of database | default :**1** |
|
||||||
| MYSQL_SERVICE_DB_PARAM | Database url parameter | default:**
|
| MYSQL_SERVICE_DB_PARAM | Database url parameter | default :**characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useSSL=false** |
|
||||||
characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useSSL=false** |
|
|
||||||
| JVM_XMS | -Xms | default :1g |
|
| JVM_XMS | -Xms | default :1g |
|
||||||
| JVM_XMX | -Xmx | default :1g |
|
| JVM_XMX | -Xmx | default :1g |
|
||||||
| JVM_XMN | -Xmn | default :512m |
|
| JVM_XMN | -Xmn | default :512m |
|
||||||
|
@ -30,8 +30,8 @@ function print_servers() {
|
|||||||
#===========================================================================================
|
#===========================================================================================
|
||||||
# JVM Configuration
|
# JVM Configuration
|
||||||
#===========================================================================================
|
#===========================================================================================
|
||||||
|
JAVA_OPT="${JAVA_OPT} -XX:+UseConcMarkSweepGC -XX:+UseCMSCompactAtFullCollection -XX:CMSInitiatingOccupancyFraction=70 -XX:+CMSParallelRemarkEnabled -XX:SoftRefLRUPolicyMSPerMB=0 -XX:+CMSClassUnloadingEnabled -XX:SurvivorRatio=8 -XX:-UseParNewGC"
|
||||||
if [[ "${MODE}" == "standalone" ]]; then
|
if [[ "${MODE}" == "standalone" ]]; then
|
||||||
|
|
||||||
JAVA_OPT="${JAVA_OPT} -Xms${JVM_XMS} -Xmx${JVM_XMX} -Xmn${JVM_XMN}"
|
JAVA_OPT="${JAVA_OPT} -Xms${JVM_XMS} -Xmx${JVM_XMX} -Xmn${JVM_XMN}"
|
||||||
JAVA_OPT="${JAVA_OPT} -Dnacos.standalone=true"
|
JAVA_OPT="${JAVA_OPT} -Dnacos.standalone=true"
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user