My machine, Win7 x64, has 20GB ram. According to the task manager 17GB is still not used.
I have set the max heap size to 70% of the available memory. I've got out of memory issue and after running the exe with -l4j-debug the problem becomes clear to me. Please see the log part below:
Heap -Xms: 512 MB / 10%, Free: 4095 MB, Heap size: 512 MB
Heap -Xmx: 1024 MB / 70%, Free: 4095 MB, Heap size: 2867 MB
The L4j calculates the available memory somehow wrong. Any explanation or solution for this issue?
It was a bug, please check the newest version (3.1.0-beta2).