The JVM parameters appear correct. You have modified the install default settings for Minimum JVM Heap Size is 4096 MB and Maximum JVM Heap Size.
Perhaps you would like to consider this value: -XX:MaxMetaspaceSize=192m
On 64 bit it is fair to say small. With available memory you could increase that to 512m. It can be a good
idea to configure an initial setting as well as maximum EG:
CF requires a restart to apply that change.
It is good to be aware there are other memory spaces that are present by default in Java 8 64 bit even tho not mentioned in the JVM settings. EG:
Thank you Carl for your solution. I will increase -XX:MaxMetaspaceSize to 512MB as you suggested. I have one more question: if I set other values such as -XX:MetaspaceSize or -XX:ReservedCodeCacheSize have I increase physical memory or those values are tailored inside JVM heap size?
Thanks a lot.
The values for XX:MetaspaceSize or XX:ReservedCodeCacheSize are non heap. That memory will be consumed outside of heap which you have set to initial 4G maximum 6G.
With regard to heap it can sometimes be a good idea to set initial and maximum the same. Some kind of Java monitoring would be needed to know for sure what is best. Let me be clear I am guessing, on a server with 8Gb RAM perhaps initial 4G maximum 4G is better to leave RAM available for non heap.
HTH again, Carl.