Bug 1396045

Summary: server takes more than 8GiByte while syncing repositories
Product: [Community] Spacewalk Reporter: Thomas Schweikle <tschweikle>
Component: ServerAssignee: Michael Mráka <mmraka>
Status: CLOSED EOL QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: high Docs Contact:
Priority: unspecified    
Version: 2.4   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-10-21 13:12:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Thomas Schweikle 2016-11-17 10:15:20 UTC
Description of problem:
Syncing a server using WebUI or by executing synchronisation by taskomaticd this may take over 8GiByte. Doing the same calling spacewalk-repo-sync on CLI it takes only about 3GiByte.
If the spacewalk host is equiped with 8 GiByte RAM, the process will fail with "Killed" without any error message. You'll find what has going on ONLY within system logs. Not within any logs written by spacewalk.

Version-Release number of selected component (if applicable):


How reproducible:
Always. It does not depend on repos being synchron or not. The more repositories a channel holds the more memory is used.

Steps to Reproduce:
1. Install Spacewalk 2.4, create repos, create channels, assign repos to channels, then synchronize these.
2. Watch memory used by java going up slowly while the process synching repositories goes on.
3. As soon as this process ends memory will drop to the level it started to rise from.

Actual results:
Memory may go out and kernel kills process. No error message within spacewalk. You'll only notice this looking at system logs, searching for "killed" processes.

Expected results:
Spacewalk exausting a warning, telling you about the fact memory is to low to sychronize further repositories, begging for more memory, or better using slower, but less memory hungry algorithms.

Additional info:
Since there is no error message within WebUI it is difficult to tell if "killed" process 100023 was spacewalk trying to synchronize repositories or not. This leads to repositories never updated in some cases.

Comment 1 Michael Mráka 2019-10-21 13:12:11 UTC
Spacewalk 2.8 (and older) has already reached it's End Of Life.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before end of life. If you would still like
to see this bug fixed and are able to reproduce it against current version
of Spacewalk 2.9, you are encouraged change the 'version' and re-open it.