Using docker
t3a.medium ec2 (4 gb ram, 2 cores)
Nginx and Postgres (metabase application db) on same server
Around 2.5 gb available for metabase
In docker run
command I am using -e "JAVA_OPTS=-Xmx2g"
.
When I do docker stats
, I see available memory for metabase container as ~3.75gb
(which is host ram i.e. 4 gb)
And while syncing at one point, I saw ram use by metabase as 2.45gb / 3.75 gb
So clearly env JAVA_OPTS
is not sufficient to rely on as container ram is exceeding this value
So should I use another parameter in docker run
of --memory=2.5g
along with -e "JAVA_OPTS=-Xmx2g"
, as it possible that JVM might be limiting itself within 2 gb but other things associated might be using the ram above 2gb of JVM ?
Thanks in advance
Edit: I am connecting metabase to data source (not application db) Postgres having total data of 73 gb