I am getting the out of memory error when I am starting the JBoss server. JBoss Server version is 5.*. And I am getting the same error while building the code itself. There is some generic issue and not related to server specific. Please do needful to fix this issue. Error is
[javac] Exception java.lang.OutOfMemoryError: requested 8208 bytes for promotion. Out of swap space?
D:\PMS_WL\buildall\JBoss51build.xml:96: Compile failed; see the compiler error output for details.