I found the answer in the Ambari Views Guide on page 2.
1. On the Ambari Server host, edit the ambari-env.sh file:
vi /var/lib/ambari-server/ambari-env.sh2. For the AMBARI_JVM_ARGS variable, replace the default -Xmx2048m with the
following:
-Xmx4096m -XX:PermSize=128m -XX:MaxPermSize=128m3. Restart Ambari Server for this change to take effect.
ambari-server restart