Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

how to prevent out of memory error

  Asked By: Sean    Date: May 31    Category: Java    Views: 973
  

Have your ever faced Out of Memory Error in your environment ???

What cud be the quick solution ?

One solution is
Edit the orion-ejb-jar.xml file in the $OC4J_HOME/application-
deployments/$YOUR_PROJECT$-ejb.jar directory. Set the attribute max-
instances='x' in all the EJBs deployed <entity-deployment
name="ForumMessageEJB" location="ForumMessageEJB"
wrapper="ForumMessageHome_EntityHomeWrapper23"
max-instances="10"
table="ForumMessageEJB">
<ejb-ref-mapping name="ejb/forummessage" /> <resource-ref-mapping
name="jdbc/biltmart" /> </entity-deployment>

The above is not possible for Production Environment, where it is
difficult to make changes in all the jar files. Any other
alternative approach / methods to configure deployment variables ?

Share: 

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on how to prevent out of memory error Or get search suggestion and latest updates.




Tagged: