You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2020/03/19 09:38:20 UTC

[GitHub] [rocketmq] HashZhang opened a new issue #1870: Adopted OpenJDK 11

HashZhang opened a new issue #1870: Adopted OpenJDK 11
URL: https://github.com/apache/rocketmq/issues/1870
 
 
   Hi. We adopted RocketMQ with OpenJDK 11.0.4 (LTS) from version 4.5.0 to 4.7.0 and have been running online for a long time. The JVM Parameters we are using is:
   
   ```
       JAVA_OPT="${JAVA_OPT} --add-exports java.base/jdk.internal.ref=ALL-UNNAMED -server -Xms8g -Xmx8g -Xmn4g"
       JAVA_OPT="${JAVA_OPT} -XX:+UseG1GC -XX:G1HeapRegionSize=16m -XX:G1ReservePercent=25 -XX:InitiatingHeapOccupancyPercent=30 -XX:SoftRefLRUPolicyMSPerMB=0"
       JAVA_OPT="${JAVA_OPT} -verbose:gc -Xlog:gc*=info,safepoint=info:file=${GC_LOG_DIR}/rmq_broker_gc.log:utctime,level,tags:filecount=5,filesize=30M"
       JAVA_OPT="${JAVA_OPT} -XX:-OmitStackTraceInFastThrow"
       JAVA_OPT="${JAVA_OPT} -XX:+AlwaysPreTouch"
       JAVA_OPT="${JAVA_OPT} -XX:MaxDirectMemorySize=15g"
       JAVA_OPT="${JAVA_OPT} -XX:-UseLargePages -XX:-UseBiasedLocking"
       JAVA_OPT="${JAVA_OPT} --class-path=${JAVA_HOME}/jre/lib/ext/*:${BASE_DIR}/lib/*:${CLASSPATH}"
       #JAVA_OPT="${JAVA_OPT} -Xdebug -Xrunjdwp:transport=dt_socket,address=9555,server=y,suspend=n"
       JAVA_OPT="${JAVA_OPT} ${JAVA_OPT_EXT}"
   ```
   
   considering making JVM options a public parameter for user to switch between OpenJDK 8 and OpenJDK 11

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [rocketmq] wlliqipeng commented on issue #1870: Adopted OpenJDK 11

Posted by GitBox <gi...@apache.org>.
wlliqipeng commented on issue #1870: Adopted OpenJDK 11
URL: https://github.com/apache/rocketmq/issues/1870#issuecomment-608338217
 
 
   You are welcome to contribute the function to RocketMQ. You may be able to submit a PR.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [rocketmq] wlliqipeng closed issue #1870: Adopted OpenJDK 11

Posted by GitBox <gi...@apache.org>.
wlliqipeng closed issue #1870: Adopted OpenJDK 11
URL: https://github.com/apache/rocketmq/issues/1870
 
 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services