Docker memory increases and hits OOM due to huge disk writes

Hello community
we are doing a test of running our application on a docker.
What we see is that once docker starts off, docker stats keep on increasing and OOM condition is hit.
the app doesnt have memory leaks (which we have confirmed)>
we do have huge disk writes of logging data. If we avert the disk writes ; memory usage goes down drastically.
What could be the reason for that?

Docker is running on a centos 7 linux machine
docker version 20.10.21