we are developing a system based on microservices architecture with spring boot technology.
Everything works fine, and we love it but we have a concern about the resources that each service is consuming.
Our system is distributed into 8-12 microservices and each of them is using at least about 550MB of RAM.
We tried to limit the resources through system variables but the performance drops seriously so limiting resources physically it is not a choice.
mem_limit: 200m
memswap_limit: 400m
Regarding this, I would like to know:
Is it normal for services that are implemented with spring boot to consume so much memory? Is there anything we can do to optimize this?
Configurations:
We're currently using CentOS 7.5 as a host OS running docker.
openjdk:11