From 83fac56d129911bdfa9ecb42ad1e7e18ac0be3da Mon Sep 17 00:00:00 2001 From: Benjamin Nelson Date: Wed, 24 Apr 2024 13:46:31 -0500 Subject: [PATCH] Add exit_on_oom=true --- controllers/spec/common.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/controllers/spec/common.go b/controllers/spec/common.go index de881f34..bc336325 100644 --- a/controllers/spec/common.go +++ b/controllers/spec/common.go @@ -1025,7 +1025,7 @@ func renderPythonInstanceLoggingINITemplate(name string, runtime *v1alpha1.Pytho lc.Policy = template.HTML(fmt.Sprintf(`[handler_timed_rotating_file_handler] args=(\"%s\", 'D', 1, 5,) class=handlers.TimedRotatingFileHandler -level=%s +level=%s formatter=formatter`, logFile, lc.Level)) case v1alpha1.TimedPolicyWithWeekly: lc.Handlers = "stream_handler,timed_rotating_file_handler" @@ -1186,6 +1186,7 @@ func getProcessJavaRuntimeArgs(name, packageName, clusterName, logLevel, details fmt.Sprintf("-Dlog4j.configurationFile=%s", javaLogConfigPath), "-Dpulsar.function.log.dir=logs/functions", "-Dpulsar.function.log.file=" + fmt.Sprintf("%s-${%s}", name, EnvShardID), + "-Dpulsar.allocator.exit_on_oom=true", setLogLevel, "-XX:MaxRAMPercentage=40", "-XX:+UseG1GC",