The software described in this documentation is either no longer supported or is in extended support.
Oracle recommends that you upgrade to a current supported release.

1.7.5 Tomcat Runs Out of Memory

If you see messages such as OutOfMemoryError: Java heap space in the Tomcat logs, increase the maximum amount of memory that is available to the Tomcat service for its heap by doing the following:

  1. Edit the /etc/sysconfig/tomcat6 (Oracle Linux 6) or /etc/sysconfig/tomcat (Oracle Linux 7) file and increase the argument to -Xmx in the JAVA_OPTS setting. For example, -Xmx1024m increases the maximum size of the heap to 1 GB.

  2. Restart the Spacewalk services.

    # /usr/sbin/spacewalk-service restart