SUSE Support

Here When You Need Us

SUSE Manager Server performance issues caused by "java tomcat" process

This document (000020386) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Manager 4.1 Server
SUSE Manager 4.2 Server

Situation

SUSE Manager Server is randomly slow, it is not answering calls and getting stuck. When such issue occurs "java tomcat" process consumes most of the CPU-Time. Following error messages can be observed within rhn_web_ui.log file: 
2021-09-13 09:45:44,110 [pool-1-thread-1] ERROR org.apache.http.impl.nio.client.InternalHttpAsyncClient - I/O reactor terminated abnormally
org.apache.http.nio.reactor.IOReactorException: I/O dispatch worker terminated abnormally
        at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor.execute(AbstractMultiworkerIOReactor.java:356)
        at org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager.execute(PoolingNHttpClientConnectionManager.java:221)
        at org.apache.http.impl.nio.client.CloseableHttpAsyncClientBase$1.run(CloseableHttpAsyncClientBase.java:64)
        at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.lang.OutOfMemoryError: Java heap space  

Resolution

Based on the error messages, the culprit is out of memory error. OOM condition stopped the I/O reactor which then lead to the errors and the slowness of the system is the result of that. In order to fix such issue, it helps to increase Tomcat max heap memory limit (which is usually set to default 1G):

1. On top of SUSE Manager Server, in `/etc/sysconfig/tomcat` please double (if that does not help triple) the value for `-Xmx1G` parameter so it looks like:

JAVA_OPTS="…​ -Xmx2G …​"

2. Restart spacewalk-service

spacewalk-service restart
For more details, please check following link .

Cause

Insufficient max heap memory limit for Tomcat process. Such behavior can occur in large deployments.

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:000020386
  • Creation Date: 15-Sep-2021
  • Modified Date:15-Sep-2021
    • SUSE Manager Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.