Hi, I'm running an application server in which there's a servlet talking to an ejb via rmi - all within the same process. Periodically I get a java.rmi.RemoteException with a nested java.lang.OutOfMemoryError exception. It don't understand how this can really be a memory problem because the ejb server is started with 1.5 gig of memory as JVM Heap. I am Using Weblogic Server with MSSQL Database.
No matter how much memeory you have, OutOfMemoryError mean that somehow it has been used up. Check out what your EJBs are doing... Is there any recursion that could spiral out of control? A bean that makes an in-memory collection of all the records in the database? References that don't get cleared out?
Does the OutOfMemoryError always happen on the same method? That will help you pinpoint where the problem is... If it happens "magically" in different methods at different times, then you have some digging to do.
Write once, run anywhere, because there's nowhere to hide! - /. A.C.