Closed olegkovalenko closed 8 years ago
MOTIVATION Avoid OOM errors on servers when node --mem option is less than 1/2 total RAM on server.
--mem
PROPOSED CHANGE: Extract Xmx ans Xmn from cassandra-jmv-options
max(min(1/2 * mem, 1024MB), min(1/4 * mem, 8GB))
min(100 MB * cpu, 1/4 * xmx)
MAX_HEAP_SIZE
HEAP_NEWSIZE
RESULT: flexible memory configuration
Merged. Thank you for the update.
Thanks!
MOTIVATION Avoid OOM errors on servers when node
--mem
option is less than 1/2 total RAM on server.PROPOSED CHANGE: Extract Xmx ans Xmn from cassandra-jmv-options
max(min(1/2 * mem, 1024MB), min(1/4 * mem, 8GB))
min(100 MB * cpu, 1/4 * xmx)
updateMAX_HEAP_SIZE
,HEAP_NEWSIZE
in cassandra-env.shRESULT: flexible memory configuration