How to configure JAVA_OPTS for Rancher HA

I’m running a Rancher HA cluster and have noticed that the UI is often slow to respond. I’ve seen some other forums posts indicating that -Xmx may need to be set and I’m curious how I would specify this if I’m using the scripts to start my servers.

I thought about adding export JAVA_OPTS="-Xmx4096m to the /var/lib/rancher/etc/server.conf file but wasn’t sure if that was going to make every sub-process start with 4GB of heap.