As the title suggests, how should I edit the following Dockerfile to take advantage of the 24GB of RAM and the 4 CPUs of my VPS?
What worries me is the RAM limit.
In your opinion how much memory should I assign to java? All 24GB or less? I need Java to run embedded Tomcat. On the server I also have Apache, PgAdmin, MySQL, PgAdmin, PhpMyAdmin and Traefik. In short, there are many services.
thank you
This is something that we canāt answer. Every application has its own requirements. This is something that you need to know. If you donāt know, you need to test it. By default, Docker containers can use all the resources, so all you need to worry about is the memory limit and cpu limit.
I guss you want to set the limit in java parameters. You can do that too, but the amount of memory and cpu is up to you.
1 Like