Bug 1082020 - Taskomatic heap size insufficient
Summary: Taskomatic heap size insufficient
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: Server
Version: 2.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Stephen Herr
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: space22
TreeView+ depends on / blocked
 
Reported: 2014-03-28 13:48 UTC by Stephen Herr
Modified: 2014-07-17 08:41 UTC (History)
0 users

Fixed In Version: spacewalk-taskomatic-2.2.30-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-07-17 08:41:02 UTC
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.