# How to configure JAVA\_OPTS for Rancher HA

**URL:** <https://forums.suse.com/t/how-to-configure-java-opts-for-rancher-ha/3982>\
**Category:** General\
**Created:** [September 12, 2016, 6:36pm UTC](https://forums.suse.com/t/how-to-configure-java-opts-for-rancher-ha/3982 "2016-09-12T18:36:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnrengelman](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/johnrengelman/32/134_2.png) [@johnrengelman](https://forums.suse.com/u/johnrengelman)\
**Post date:** [September 12, 2016, 6:36pm UTC](https://forums.suse.com/t/how-to-configure-java-opts-for-rancher-ha/3982/1 "2016-09-12T18:36:27Z")

</div>

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 `rancher-ha.sh` 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.
