Nodejs based web application docker container work slow

Hi,

We are using docker container for our nodejs based application. This applications are web based.
After few days run the containers we face the issue. Issue is Web application are taking too long time for loading. If we restart the container then applications are working faster. we have to do this after 3/4 days every time.

We need a co-operation regarding this issue.

Here is below docker stats report

NAME CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS
a.container 0.00% 115.9MiB / 11.57GiB 0.98% 454MB / 577MB 52.9MB / 0B 22
b.container 0.02% 657.5MiB / 11.57GiB 5.55% 46.2GB / 23.4GB 7.56GB / 377kB 38
c.container 0.00% 8.773MiB / 11.57GiB 0.07% 168MB / 32.4GB 158MB / 0B 7
d.container 0.00% 4.477MiB / 11.57GiB 0.04% 105kB / 0B 1.73MB / 8.19kB 7

Client: Docker Engine - Community
Version: 24.0.6

Format code/config with 3 backticks to make it human readable.

Update Docker to latest version.

Share Dockerfile and docker-compose.yml.

You are sure it’s not an issue with your code? That your code does not behaves the same under production traffic without Docker?