We have 10 spring boot applications which are running on ubuntu18 with 8GB RAM and Java 11.
We are running the apps using java garbage collector -XX:+UseSerialGC without restricting the heap space.
But after few days server memory fully consumed and server got hanged.
Do we need to restrict the heap memory if we are using garbage collector ?
I have tried with other garbage collectors also but nothing working except +UseSerialGC.