From 8af45cd6dd88a57cb8a92c7a02123e95bd6ddc81 Mon Sep 17 00:00:00 2001 From: Rahul Imran Date: Fri, 18 Oct 2024 10:42:13 +0100 Subject: [PATCH] Fix: Add detection for 32 bit java on -Xms (#425) * Fix: Add detection for 32 bit java on -Xms Before it was only checking -Xmx, this also checks -Xms Signed-off-by: Rahul Imran * remove extra ; Signed-off-by: Rahul Imran --------- Signed-off-by: Rahul Imran --- src/handlers/event/analyze_logs/issues.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/handlers/event/analyze_logs/issues.rs b/src/handlers/event/analyze_logs/issues.rs index a5b258a..5987c74 100644 --- a/src/handlers/event/analyze_logs/issues.rs +++ b/src/handlers/event/analyze_logs/issues.rs @@ -370,7 +370,8 @@ fn java_32_bit(log: &str) -> Issue { ); let found = log.contains("Could not reserve enough space for ") - || log.contains("Invalid maximum heap size: "); + || log.contains("Invalid maximum heap size: ") + || log.contains("Invalid initial heap size: "); found.then_some(issue) }