We hit java.lang.OutOfMemoryError: PermGen space error on Windows with EAP 6.2.0 ER4 - it contains change for JVM parameters. BZ 956281 tracks full history for this change. https://github.com/jbossas/jboss-eap/pull/440/files -set "JAVA_OPTS=-Xms1303M -Xmx1303M -XX:MaxPermSize=256M" +set "JAVA_OPTS=-Xms1G -Xmx1G" java.lang.OutOfMemoryError: PermGen space error happened during JBossWS CXF testsuite execution, server is started by calling standalone.bat without any additional parameters. We didn't hit this problem with any prior EAP release. Error example: 08:17:51,499 WARN [org.jboss.modules] (http-/127.0.0.1:8080-29) Failed to define class com.ctc.wstx.cfg.ErrorConsts in Module "org.codehaus.woodstox:main" from local module loader @15856a5 (finder: local module finder @a084f8 (roots: W:\workspace\eap-6x-jbossws-testsuite-windows\ebd0dbc9\build\jboss-eap-6.2\modules,W:\workspace\eap-6x-jbossws-testsuite-windows\ebd0dbc9\build\jboss-eap-6.2\modules\system\layers\base)): java.lang.OutOfMemoryError: PermGen space 08:17:51,499 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/jaxws-jbws1582].[TestService]] (http-/127.0.0.1:8080-29) JBWEB000236: Servlet.service() for servlet TestService threw exception: java.lang.OutOfMemoryError: PermGen space # # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d92fbc9, pid=7288, tid=5816 # # JRE version: 6.0_45-b06 # Java VM: Java HotSpot(TM) Client VM (20.45-b01 mixed mode windows-x86 ) # Problematic frame: # V [jvm.dll+0x4fbc9] # # An error report file with more information is saved as: # W:\workspace\eap-6x-jbossws-testsuite-windows\ebd0dbc9\build\stack-cxf\modules\testsuite\hs_err_pid7288.log # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp #
@Tomaz, spot-on. The WS testsuite should override this.
Windows 2008, Sun JDK, commit with -XX:MaxPermSize=256M should fix the problem
verified that EAP 6.2.0.ER5 on windows do not need to preset JAVA_OPTS and jbossws cxf testsuite do not fail because of java.lang.OutOfMemoryError: PermGen space