We run metabase on a heroku standard 1x dyno which gives us 1gb of memory. It appears that metabase will use all of that, and a little more regardless of whether it's being used at the time or not. This is leading to R14 memory issues and we also experience a significant amount of freezing and slow processing. Surely this isn't right?
I have seen several old (~3 + year old) threads on this topic but nothing recently that would address the issue. I have also looked into Heroku's own docs on JVM and the only suggestion was to add
heroku config:set JAVA_TOOL_OPTIONS=-XX:+UseContainerSupport
but this has made no difference.
Are there any other suggestions for this.
We did think about upgrading the dyno further but I can see from others that JVM will just use any and all memory in the same manner.
Running the latest 0.45.3 build
Diagnostic Info
{
"browser-info": {
"language": "en-GB",
"platform": "MacIntel",
"userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36",
"vendor": "Google Inc."
},
"system-info": {
"file.encoding": "UTF-8",
"java.runtime.name": "OpenJDK Runtime Environment",
"java.runtime.version": "11.0.18+10-LTS",
"java.vendor": "Azul Systems, Inc.",
"java.vendor.url": "http://www.azul.com/",
"java.version": "11.0.18",
"java.vm.name": "OpenJDK 64-Bit Server VM",
"java.vm.version": "11.0.18+10-LTS",
"os.name": "Linux",
"os.version": "4.4.0-1104-aws",
"user.language": "en",
"user.timezone": "Etc/UTC"
},
"metabase-info": {
"databases": [
"h2",
"postgres"
],
"hosting-env": "heroku",
"application-database": "postgres",
"application-database-details": {
"database": {
"name": "PostgreSQL",
"version": "13.9 (Ubuntu 13.9-1.pgdg20.04+1)"
},
"jdbc-driver": {
"name": "PostgreSQL JDBC Driver",
"version": "42.5.0"
}
},
"run-mode": "prod",
"version": {
"date": "2023-02-19",
"tag": "v0.45.3",
"branch": "release-x.45.x",
"hash": "070f57b"
},
"settings": {
"report-timezone": null
}
}
}