0

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???)

henry-jo
  • 111
  • 1
  • 7
  • See [this answer](https://stackoverflow.com/a/53624438/3448419), you may scroll directly to *Conclusion*. – apangin Aug 19 '21 at 11:36

0 Answers0