You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2019/02/22 01:45:21 UTC

[GitHub] sijie commented on a change in pull request #3650: Use less aggressive JVM memory settings in default config file

sijie commented on a change in pull request #3650: Use less aggressive JVM memory settings in default config file
URL: https://github.com/apache/pulsar/pull/3650#discussion_r259186605
 
 

 ##########
 File path: conf/pulsar_env.sh
 ##########
 @@ -42,10 +42,13 @@
 # PULSAR_GLOBAL_ZK_CONF=
 
 # Extra options to be passed to the jvm
-PULSAR_MEM=${PULSAR_MEM:-"-Xms2g -Xmx2g -XX:MaxDirectMemorySize=4g"}
+PULSAR_MEM=${PULSAR_MEM:-"-Xmx2g -XX:MaxDirectMemorySize=2g -XX:+ExitOnOutOfMemoryError"}
 
 # Garbage collection options
-PULSAR_GC=" -XX:+UseG1GC -XX:MaxGCPauseMillis=10 -XX:+ParallelRefProcEnabled -XX:+UnlockExperimentalVMOptions -XX:+AggressiveOpts -XX:+DoEscapeAnalysis -XX:ParallelGCThreads=32 -XX:ConcGCThreads=32 -XX:G1NewSizePercent=50 -XX:+DisableExplicitGC -XX:-ResizePLAB"
+PULSAR_GC=" -XX:+UseG1GC"
+
+# Example of configuration with more aggressive options to reduce the GC pause times. Works well with higher heap sizes
 
 Review comment:
   same comments as above

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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