Increase JVM memory self-hosted anvil-runtime

Our self-hosted anvil-runtime server was failing to properly respond to requests due to an Out of Memory JVM error over the weekend. In the short term, Is it possible to increase the JVM memory allocation on our VM (as the server itself was NOT out of memory)? If so, how would we do this?

In the long-term, is it possible to figure out what’s causing this issue (maybe a memory leak)? We seemingly had the same issue on the hosted version of anvil but I’m assuming our application was automatically restarted.

Thank you

Has anyone else run into this issue? This still brings down our application roughly once/week!

Are you using the latest version of the self-hosted anvil-runtime server? Is it possible to increase the VM instance to a larger one?

Yes, we should be on the latest anvil-runtime version. The VM that the anvil container is running on has 8GB of RAM. The container is NOT trying to use all of the available free memory–it seems to be a restriction internal to the anvil-runtime config.