We're configuring a JVM to deploy a server application with Java 11. Turns out our VM has a limit of 1.3G of RAM and we assigned the JVM the following config:
-Xms512m
-Xmx1024m
Turns out that when we start the VM it says that there is not enough memory for the application to start. (Due to security reasons I cannot place the error message here -_-).
We tried to run the app on a local machine and found out it is consuming more memory than intended with the help of VisualVM. Check the Max Value, is beyond 1GB
We found that the JVM is capable of adding more memory than intended, our question is: Which memories affect this "extra" allocation of memory? We tried with Perm (deprecated) of course but we don't have an idea about which specific flags might affect the difference