hakusai22 commented on issue #8898:
URL: https://github.com/apache/rocketmq/issues/8898#issuecomment-2461184825

   > You can manually modify benchmark’s startup script benchmark/runclass.sh.
   > 
   > In your case, you should change '-XX:PermSize=128m -XX:MaxPermSize=320m' 
to '-XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=320m'.
   > 
   > The PermSize option was used in Java 7 and earlier to set the initial size 
of the permanent generation space. However, starting from Java 8, this option 
was replaced by Metaspace.
   
   yes, After I modified the jvm parameters, it ran successfully
   ```
   JAVA_OPT="${JAVA_OPT} -server -Xms1g -Xmx1g -Xmn256m "
   JAVA_OPT="${JAVA_OPT} -XX:+UseG1GC -XX:MaxGCPauseMillis=200 
-XX:G1ReservePercent=20 -XX:InitiatingHeapOccupancyPercent=70"
   JAVA_OPT="${JAVA_OPT} -verbose:gc 
-Xlog:gc*:file=${GC_LOG_DIR}/rmq_run_class_gc_%p_%t.log:time,uptime,level,tags 
-XX:+PrintGCDetails"
   JAVA_OPT="${JAVA_OPT} -XX:+UnlockExperimentalVMOptions 
-XX:+UseContainerSupport -XX:+PerfDisableSharedMem"
   JAVA_OPT="${JAVA_OPT} -cp ${CLASSPATH}"
   ```


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to