Skip to content

Commit

Permalink
Add JVM memory limit to work around #147
Browse files Browse the repository at this point in the history
  • Loading branch information
nightkr committed Dec 17, 2024
1 parent cdc0324 commit 11b7e61
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rust/operator-binary/src/controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,8 @@ fn build_server_rolegroup_statefulset(
"prepare_signal_handlers".to_string(),
format!("containerdebug --output={STACKABLE_LOG_DIR}/containerdebug-state.json --loop &"),
// run process
format!("java -Djava.security.properties={STACKABLE_CONFIG_DIR}/{JVM_SECURITY_PROPERTIES} -jar hello-world.jar &"),
// hard-coded memory limit to work around #147, TODO: migrate to our JVM resource handling framework
format!("java -Djava.security.properties={STACKABLE_CONFIG_DIR}/{JVM_SECURITY_PROPERTIES} -Xmx100M -jar hello-world.jar &"),
// graceful shutdown part
"wait_for_termination $!".to_string(),
create_vector_shutdown_file_command(STACKABLE_LOG_DIR),
Expand Down

0 comments on commit 11b7e61

Please sign in to comment.