Skip to content

Commit 34befa5

Browse files
committed
Update mem detection
1 parent a1ceebc commit 34befa5

File tree

1 file changed

+3
-1
lines changed
  • rust/operator-binary/src/config

1 file changed

+3
-1
lines changed

rust/operator-binary/src/config/jvm.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@ pub fn construct_heap_jvm_args(
8989
}
9090

9191
fn is_heap_jvm_argument(jvm_argument: &str) -> bool {
92-
jvm_argument.to_lowercase().starts_with("-xm")
92+
let lowercase = jvm_argument.to_lowercase();
93+
94+
lowercase.starts_with("-xms") || lowercase.starts_with("-xmx")
9395
}
9496

9597
#[cfg(test)]

0 commit comments

Comments
 (0)