aspose file tools
The moose likes Distributed Java and the fly likes java.lang.OutOfMemoryError--> EJB Exception Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Reply Bookmark "java.lang.OutOfMemoryError--> EJB Exception" Watch "java.lang.OutOfMemoryError--> EJB Exception" New topic
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...
 
I agree. Here's the link: http://zeroturnaround.com/jrebel/download
 
subject: java.lang.OutOfMemoryError--> EJB Exception
 
Similar Threads
RemoteException->java.lang.OutOfMemoryError
java.lang.OutOfMemoryError--> EJB Exception
EJB Exception
OutOfMemoryError in Accessing CICS Transaction from JAVA in WebSphere 3.5
maximum length of String = 32k ?