Nexus 3.43.0 running out of memory even after recommended memory

Hello Team,

we are planning to upgrade Nexus to 3.43.0 but we are getting out of memory (java heap) even if we have set basic memory requirement , but I can see in official dockerfile it has been set to 2703MB
, docker-nexus3/Dockerfile at 3.43.0 · sonatype/docker-nexus3 · GitHub

so what is recommended memory for Nexus, I can see system requirement but want to know if there is specific memory is recommended for docker container since we are using Debian as base image.

PS: we are using nexus as docker .

Please guide.

Regards,
SAM

See here: System Requirements