mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-12-05 02:06:06 +01:00
Without forcedType or regex, SOC accepted a unitless heap such as 500. AlignBestGuess stored it as a YAML integer, which rendered -Xms500 (bytes) and restart-looped the service. On the next save, AlignType then tried ParseInt on the corrected 500m and rejected it. forcedType: string makes SOC store the value as a string whatever the stored type, so an existing integer can be corrected. The regex blocks unitless values in the UI. k, m and g are allowed (either case), matching what the bundled JDKs accept for -Xms/-Xmx; the Logstash JVM options parser passes them through unchanged. Heaps too small to start fail in the JVM whatever the unit, so the regex doesn't check size.