Running druid on docker with memory issue

Hi there,
I am running the druid in the docker container, with the Xmx1G and Xms1G. It will run fine for a few minutes and then either the broker or the historical container will exit with error message 137 (out of Memory). Even when I change the Xmx to 2G, it behaviors the same. I am only ingesting some data with a size of a few MB.
Have you encountered the same and how to resolve the issue?

You are running out of memory. Look at the bottom of this document. The recommendation is to start with 6 GB.

Hey Matt,

Thanks for pointing to the doc. I actually have 16G assigned to docker already.