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.3 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/tomcat/conf.d/tomcat_java_opts.conf
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
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:12-Feb-2025
-
- SUSE Manager Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com