OutOfMemoryError on child Host Controller when installing large patches
Environment
- JBoss Enterprise Application Platform (EAP)
- 6.2
- CP03
- CP04
Issue
- In a remote
domain and host controllerset-up if a patch (CP03/CP04) applied on remote host controller then it fails with anOutOfMemoryError:
patch apply --host=some-host jboss-eap-6.2.3-patch.zip
. . .
13:58:40,478 ERROR [stderr] (domain-mgmt-handler-thread - 1) Exception in thread "domain-mgmt-handler-thread - 1" java.lang.OutOfMemoryError: Java heap space
13:58:40,479 ERROR [stderr] (domain-mgmt-handler-thread - 1) at java.util.Arrays.copyOf(Arrays.java:2271)
. . .
Resolution
- As a work-around, increase the max heap size on the domain controller(s) by temporarily editing
HOST_CONTROLLER_JAVA_OPTSinbin/domain.conf. A setting of-Xmx1024mshould work.
Root Cause
The Bugzilla 1108952 covers this issue.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
