This section focuses on the configuration of the system (JVM/OS)
...
...
@@ -22,7 +22,7 @@ As for garbage collection, G1 collector with JDK 1.8 is recommended:
-XX:G1ReservePercent=25
-XX:InitiatingHeapOccupancyPercent=30
These GC options looks a little aggressive, but it’s proved to have good performance in our production environment
These GC options looks a little aggressive, but it’s proved to have good performance in our production environment.
Don’t set a too small value for -XX:MaxGCPauseMillis, otherwise JVM will use a small young generation to achieve this goal which will cause very frequent minor GC.So use rolling GC log file is recommended:
...
...
@@ -64,4 +64,4 @@ There is an os.sh script that lists a lot of kernel parameters in folder bin whi
-**Disk scheduler**, the deadline I/O scheduler is recommended for RocketMQ, which attempts to provide a guaranteed latency for requests.