My Oracle Support Banner

Spacewalk Getting Error "Exception in Thread-xxx java.lang.OutOfMemoryError: Java heap space" (Doc ID 2343242.1)

Last updated on AUGUST 04, 2018

Applies to:

Linux OS - Version Oracle Linux 6.0 with Unbreakable Enterprise Kernel [2.6.32] and later
Linux x86-64
Linux x86

Goal

When you are trying to sync the spacwalk repos using the command #spacewalk-repo-sync -c <channel name> may failed due to java heap message as shown in below logs

 rhn_taskomatic.logs 

INFO | jvm 2 | 2017/12/14 17:45:58 | 2017-12-14 17:45:58,778 [Thread-674] INFO com.redhat.rhn.taskomatic.task.repomd.RepositoryWriter - Channel Modified Date:2017-12-14 14:10:06 PST
INFO | jvm 2 | 2017/12/14 17:45:59 | 2017-12-14 17:45:58,943 [Thread-674] INFO com.redhat.rhn.taskomatic.task.repomd.RepositoryWriter - Generating new repository metadata for channel 'ol6_x86_64_latest'(sha256) 32271 packages, 2990 errata
INFO | jvm 2 | 2017/12/14 18:14:15 | Exception in thread "Thread-674" java.lang.OutOfMemoryError: Java heap space
STATUS | wrapper | 2017/12/15 11:58:41 | TERM trapped. Shutting down.

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.