We have a service that consumes ~600 MB in heap.
The current hosts we have, have 4 GB memory. By default JVM allots 25% of max heap size. So we're getting 1 GB of heap size.
We are seeing multiple brownouts, and I suspect the less memory we have for those. I added a host with 8 GB memory, and double the number of CPUs, and that host never browned out, thus further enforcing my theory.
Wanted to understand what is the optimal value of memory for a process taking 600MB heap.
Also wanted to understand how much it makes sense to increase the heap size.
I tried to increase initial heap size to 2GB, but the hosts crashed when I deployed the changes to them. Would it make sense to increase the heap size to 1.5 GB?
Any pointers appreciated.