aspose file tools*
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 Soft Skills this week in the Jobs Discussion 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
Author

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: 1859
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
    
    6
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.
Cheers
Simon
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: how should I release the memory from EJB?