| Author |
java.lang.OutOfMemoryError--> EJB Exception
|
allagadda aadhikeshavareddy
Greenhorn
Joined: Dec 08, 2004
Posts: 2
|
|
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.
|
 |
Nathan Pruett
Bartender
Joined: Oct 18, 2000
Posts: 4121
|
|
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.
|
-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
|
 |
Nathan Pruett
Bartender
Joined: Oct 18, 2000
Posts: 4121
|
|
|
Moving to the EJB forum...
|
 |
 |
|
|
subject: java.lang.OutOfMemoryError--> EJB Exception
|
|
|