Deployment of Java Spring API using Dockerfile

I am facing the exactly same problem! I am trying to deploy a docker image of my application which is an angular + spring boot. My app only startup when I defined JAVA_OPS = " -Xmx214m -Xms128m” as you did. But my application which is using java 11 failed to startup complete because out of memory, showing the following message:

[info] [ 194.978636] Out of memory: Killed process 515 (java) total-vm:2224432kB, anon-rss:201256kB, file-rss:0kB, shmem-rss:0kB, UID:1000 pgtables:660kB oom_score_adj:0

I read in another forum post (https://community.fly.io/t/oom-errors-on-free-tier-on-a-bare-application/2621/2) that the " total-vm:2224432kB" meaning which is needed to startup, so is it need 2GB RAM?