Related issue https://bugzilla.redhat.com/show_bug.cgi?id=1026812 which particulary was fixed, but we are now still facing OOM on 64bit OracleJDK 1.6 in basic tests. See e.g.: https://jenkins.mw.lab.eng.bos.redhat.com/hudson/view/EAP6/view/EAP6-AS-Testsuite/job/eap-60-as-testsuite-RHEL-matrix-OracleJDK6/jdk=java16_default,label_exp=RHEL5%26%26x86_64/116/consoleFull https://jenkins.mw.lab.eng.bos.redhat.com/hudson/view/EAP6/view/EAP6-AS-Testsuite/job/eap-60-as-testsuite-RHEL-matrix-OracleJDK6/jdk=java16_default,label_exp=RHEL6%26%26x86_64/116/consoleFull
Workaround is to increase default PermGen size for forked surefire JVM at least for basic tests. One of the easiest ways can be sed -i 's|<argLine>${jvm.args.ip.client} ${jvm.args.timeouts}</argLine>|<argLine>${jvm.args.ip.client} ${jvm.args.timeouts} -XX:MaxPermSize=128m</argLine>|' "${WORKSPACE}/jboss-eap-6.2-src/testsuite/integration/pom.xml"
6.x PR: https://github.com/jbossas/jboss-eap/pull/837 6.2.x PR: https://github.com/jbossas/jboss-eap/pull/838
Verified for EAP 6.3.0.DR2. Fix is in source zip and there is no more such OOM issue.