I find myself having to restart JDeveloper 11g from time to time because I start getting this error:
WARNING: Internal server error
java.lang.OutOfMemoryError: Java heap space
A solution is posted on Oracle Community Forums
It appears to do the trick, although I’m suspicious of memory leaks within OC4J.(Interestingly enough, Glassfish V2 used to throw this one as well. Glassfish V2 UR1 does not.)