I am using JBoss 4.0.3RC1. I often encounter OutOfMemory exception so that I have to restart JBOSS. I set the JVM max memory to more than 800M. I am sure it did not reach the limit. The exception usually happened after several exceptions from my application. Is this a bug? Thanks.