I'm going to run the spring application on docker container as follows.
java -XX:+UseG1GC -Xms2G -Xmx4G -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=512m -jar hello-application.jar
In this case, how do I calculate docker container's suitable memory capacity & number of cpu core?
(ex. max memory 4G + max metaspace 512M = 4.5G???)