geniusjoe commented on code in PR #25274: URL: https://github.com/apache/pulsar/pull/25274#discussion_r2878760478
########## bin/pulsar: ########## @@ -300,6 +300,14 @@ OPTS="$OPTS --add-opens java.base/java.nio=ALL-UNNAMED --add-opens java.base/jdk OPTS="$OPTS --add-opens java.base/jdk.internal.platform=ALL-UNNAMED" # Required by RocksDB java.lang.System::loadLibrary call OPTS="$OPTS --enable-native-access=ALL-UNNAMED" +# These two settings work together to ensure the Pulsar process exits immediately and predictably +# if it runs out of either Java heap memory or its internal off-heap memory, +# as these are unrecoverable errors that require a process restart to clear the faulty state and restore operation +OPTS="-XX:+ExitOnOutOfMemoryError -Dpulsar.allocator.exit_on_oom=true $OPTS" +# Netty tuning +# These settings are primarily used to modify the Netty allocator configuration, +# improving memory utilization and reducing the frequency of requesting off-heap memory from the OS Review Comment: Fixed. A description of the Netty parameter `-Dio.netty.allocator.maxOrder=10` has been added to the related scripts -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
