JBoss throws OOME when user tries to log in though there's tons of memory! JBoss has been up for about 55 hours with the following settings:
-Xms1024m
-Xmx1536m
-XX:MaxPermSize=256m
-Dsun.rmi.dgc.client.gcInterval=3600000
-Dsun.rmi.dgc.server.gcInterval=3600000
-Xss256k
-XX:+UseConcMarkSweepGC
-XX:+CMSClassUnloadingEnabled
-XX:HeapDumpPath=../heapdump.hprof
-XX:+HeapDumpOnOutOfMemoryError
-Djava.net.preferIPv4Stack=true
According to JVisualVm the used memory is about 950M. This means that more than 500M is still available for allocation. However all attempts to log-in results in "java.lang.OutOfMemoryError: Java heap space"!
-Xss256kand I bet your error goes away.