Hi, I'm developing microservices using docker + spring + openjdk.
As far as I know, all openjdk versions are aware of the container's memory restrictions and can be modified using MaxRAMPercentage and MinRAMPercentage parameters.
Checking the memory usage of the microservices I'm developing, I see that only about 30 - 50Mb are needed for each one, but I need to change the MaxRAMPercentage to 95.0 and give about 125Mb to each container in order to make them run fast. If the container has less than that it runs significantly slower.
Why should I give this 125% extra memory to the container to run 'fast'? I guess that you should always give to the container a bit more memory that it needs, but that so much? I'm sure I'm missing something here and I wonder if you could clarify why this ishappening or just put me in the right direction so I could do some research to underestand it.
Hi, I'm developing microservices using docker + spring + openjdk.
As far as I know, all openjdk versions are aware of the container's memory restrictions and can be modified using MaxRAMPercentage and MinRAMPercentage parameters.
Checking the memory usage of the microservices I'm developing, I see that only about 30 - 50Mb are needed for each one, but I need to change the MaxRAMPercentage to 95.0 and give about 125Mb to each container in order to make them run fast. If the container has less than that it runs significantly slower.
Why should I give this 125% extra memory to the container to run 'fast'? I guess that you should always give to the container a bit more memory that it needs, but that so much? I'm sure I'm missing something here and I wonder if you could clarify why this ishappening or just put me in the right direction so I could do some research to underestand it.
Thank you! Regards.