# {{ ansible_managed | default('Managed by Ansible') }} # # JVM options for OpenSearch ## Heap size — set min and max to the same value -Xms{{ opensearch_heap_min }} -Xmx{{ opensearch_heap_max }} ## GC configuration -XX:+UseG1GC -XX:MaxGCPauseMillis=500 ## Basic JVM tuning -XX:+ExitOnOutOfMemoryError -XX:+HeapDumpOnOutOfMemoryError -Djava.awt.headless=true -Djava.security.egd=file:/dev/urandom -Dfile.encoding=UTF-8 ## Heap dump path -XX:HeapDumpPath={{ opensearch_data_dir }} ## Temp directory -Djava.io.tmpdir=/tmp