Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how should I release the memory from EJB?

 
Stephen Lee
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1551
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1868
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1913
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic