Skip to content

Commit

Permalink
Add exit_on_oom=true
Browse files Browse the repository at this point in the history
  • Loading branch information
illegalnumbers committed Apr 24, 2024
1 parent 1aa9493 commit 83fac56
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion controllers/spec/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 83fac56

Please sign in to comment.