• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

java.lang.OutOfMemoryError--> EJB Exception

 
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.
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • 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 Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to the EJB forum...
 
First, you drop a couch from the plane, THEN you surf it. Here, take this tiny ad with you:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!