• Post Reply Bookmark Topic Watch Topic
  • New Topic

java.lang.OutOfMemoryError--> EJB Exception

 
allagadda aadhikeshavareddy
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to the EJB forum...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!