当前,我们正在使用DSE 6.0.4版本,并计划迁移到Apache cassandra 3.11.6。使用apache cassandra创建了一个全新的集群,当我比较Apache VS DSE之间的JVM设置(jvm.options)时,我发现DSE具有更多设置。
例如:-
以下设置存在于DSE版本中,但在apache cassandra中不存在。是否可以在apache cassandra JVM.options文件中添加这些参数?还是不需要?
# Align direct memory allocations
-Dsun.nio.PageAlignDirectMemory=true
# Honor user code @Contended annotations
-XX:-RestrictContended
# Decrease frequency of guaranteed safepoints to avoid needless pauses
-XX:+UnlockDiagnosticVMOptions
-XX:GuaranteedSafepointInterval=300000
# There's no adverse side effect to enabling the debug info, so leave on by default to allow better info for profilers
-XX:+UnlockDiagnosticVMOptions
-XX:+DebugNonSafepoints
################
# NIO SETTINGS #
################
# Limit maximum cached thread-local direct buffer to 1MB to avoid native OOM
# See https://bugs.openjdk.java.net/browse/JDK-8147468
-Djdk.nio.maxCachedBufferSize=1048576