File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes how should I release the memory from EJB? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "how should I release the memory from EJB?" Watch "how should I release the memory from EJB?" New topic

how should I release the memory from EJB?

Stephen Lee
Ranch Hand

Joined: Dec 11, 2001
Posts: 74
I am now using J2EE framework with some session beans (acts as session facade) and lots of entity beans. However, when I deploy it, it works fine for several minutes, then the server stops. In the log file, I found that there is OutOfMemory error. Does this mean that there are too much bean in the pool? How should I release them? Thanks!
Stephen Lee
Rufus BugleWeed
Ranch Hand

Joined: Feb 22, 2002
Posts: 1551
What's the chance that the JVM running your server
is running out of memory? How much RAM do you
have on the server hosting the J2EE container?
Rahul Mahindrakar
Ranch Hand

Joined: Jul 28, 2000
Posts: 1849
Stephen :
As stated above the memory on your system is insufficient for the task. You need to add additional memory.
Simon Brown
sharp shooter, and author
Ranch Hand

Joined: May 10, 2000
Posts: 1913
Just following up on this ... did you manage to fix it?
If you're using WebLogic for example, you just need to open up the startup scripts/batch files and edit the -Xms and -Xmx values. By default, you'll probably find they are defaulted at 64 or 128 Mb.
Hope you've already fixed it.
Don't get me started about those stupid light bulbs.
subject: how should I release the memory from EJB?
Similar Threads
How to refresg a bean in Session
Connection Database Growing up non stop.
Invoking new() on a bean class?
Confusion between PreDestroy and Remove annotation
releasing resources