Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1082020

Summary: Taskomatic heap size insufficient
Product: [Community] Spacewalk Reporter: Stephen Herr <sherr>
Component: ServerAssignee: Stephen Herr <sherr>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.2   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: spacewalk-taskomatic-2.2.30-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-17 08:41:02 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:
Embargoed:
Bug Depends On:    
Bug Blocks: 1119298    

Description Stephen Herr 2014-03-28 13:48:17 UTC
Description of problem:
Taskomatic's max heap size is currently set to 1GB. That is insufficient to generate the repodata for large channels, say rhel-x86_64-server-5. You wind up with the repodata not getting regenerated and errors like this in /var/log/rhn/rhn_taskomatic_daemon.log:

INFO   | jvm 1    | 2014/03/28 08:50:00 | 2014-03-28 08:50:00,777 [Thread-55] INFO  com.redhat.rhn.taskomatic.task.repomd.RepositoryWriter - Generating new repository metadata for channel 'rhel-x86_64-server-5'(sha1) 15768 packages, 2856 errata
INFO   | jvm 1    | 2014/03/28 08:50:32 | Exception in thread "Thread-55" java.lang.OutOfMemoryError: GC overhead limit exceeded

How reproducible:
Don't know.

Steps to Reproduce:
1. regenerate the repodata for a large channel

Actual results:
OutOfMemoryError

Expected results:
Should work

Additional info:
This limit is controlled by the wrapper.java.maxmemory option in /usr/share/rhn/config-defaults/rhn_taskomatic_daemon.conf. To manually work-around you can increase the setting to 2048 and 'service taskomatic restart'.

Comment 1 Stephen Herr 2014-03-28 13:50:21 UTC
Also could manifest in error logs as:
INFO   | jvm 1    | 2014/03/28 08:50:32 | 2014-03-28 08:50:32,626 [Thread-56] INFO  com.redhat.rhn.taskomatic.task.repomd.RepositoryWriter - Generating new repository metadata for channel 'rhel-x86_64-server-6'(sha256) 12197 packages, 1984 errata
INFO   | jvm 1    | 2014/03/28 08:50:53 | Exception in thread "Thread-56" java.lang.OutOfMemoryError: Java heap space

Comment 2 Stephen Herr 2014-03-28 13:54:08 UTC
Committing to Spacewalk master:
7f10eee815fac44480c0f571214ed2f008357e35

Comment 3 Milan Zázrivec 2014-07-17 08:41:02 UTC
Spacewalk 2.2 has been released:

    https://fedorahosted.org/spacewalk/wiki/ReleaseNotes22