tillrohrmann commented on a change in pull request #9703: [FLINK-14038]Add
default GC options for flink on yarn to facilitate debugging
URL: https://github.com/apache/flink/pull/9703#discussion_r339307780
##########
File path:
flink-runtime/src/main/java/org/apache/flink/runtime/clusterframework/BootstrapTools.java
##########
@@ -513,6 +519,56 @@ public static Configuration
cloneConfiguration(Configuration configuration) {
return clonedConfiguration;
}
+ /**
+ * Format the default gc logging options
+ * @param logDirectory to save the gc log
+ * @param conf flink configuration
+ * @return the formatted gc logging options string
+ */
+ public static String getGCLoggingOpts(String logDirectory,
Configuration conf) {
+ boolean enableGCLogging =
conf.getBoolean(CoreOptions.FLINK_JVM_DEFAULT_GC_LOGGING);
+ if (enableGCLogging) {
Review comment:
The check could then happen in `getTaskManagerShellCommand` or in another
method `Optional<String> maybeGetGCLoggingOpts`
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services