Rancher/Server Heap Size

Hi there,
To increase the heap size of Rancher/server by passing in the -e JAVA_OPTS="-Xms2048m -Xmx2048m" when running the rancher/server container.
Question here is how to increase after I have deployed my rancher/server ?

Many Thanks

Look like passing in the heap size using the following
docker run -d --restart=unless-stopped -p 8080:8080 -p 9345:9345 -e JAVA_OPTS="-Xms2048m -Xmx2048m" rancher/server:stable …(other parameter)

Result in getting two set of -Xms and -Xmx
java -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -Xms128m -Xmx4g … bootstrap.level=WARN -Xms4096m -Xmx16384m …

How to set heap size for production deployment??

The -e has to go before the image… everything after the image is arguments to the entrypoint, not arguments to docker.