tomcat + docker +java taking a lot of time to serve static page on initial load

312 Views Asked by At

When I run a tomcat docker container to serve a war file, initial load takes a lot of time, after the first load, if I load the page even from incognito it loads immediately.

On first load enter image description here

After first load: enter image description here

docker stats output before first load: enter image description here

docker stats output after first load: enter image description here

I searched for solutions, they suggest to tweak initialHeapSize, initialRamPercentage, tried everything but it doesn't work.

0

There are 0 best solutions below