Skip to content

Commit

Permalink
feat: Set default heap to half of total memory (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
indrahostinger authored Dec 11, 2024
1 parent 8c6f2ba commit 8c4c820
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/jvm.options.j2
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
-Xms{{ es_heap_size }}
-Xmx{{ es_heap_size }}
{% else %}
-Xms2g
-Xmx2g
-Xms{{ (ansible_memtotal_mb * 0.5) | int }}m
-Xmx{{ (ansible_memtotal_mb * 0.5) | int }}m
{% endif %}

################################################################
Expand Down

0 comments on commit 8c4c820

Please sign in to comment.