We are deploying our application on Oracle10g AS , version 10.1.3. Very frequently we get OutOfMemory error even for a single user. We are using the default settings for Java Options. Please suggest a solution ASAP.
Joined: Apr 10, 2006
You could try to increase the heap size you give to the JVM on startup (-Xmx <size> .
Appart from that, all you can do is trying to track down which part of your application eats to so much memeory and reduce it. Application like OptimizeIt helps you doing that.
It is a mistake to think you can solve any major problems just with potatoes.<br />--Douglas Adams
Joined: Apr 16, 2005
thanx . but how can i know the current heap size of my JVM???
A = HARDWORK B = LUCK/FATE If C=(A+B) then C=SUCCESSFUL IN LIFE else C=FAILURE IN LIFE
When you create an application in OAS 10.1.3.x.x you can create a deployment file (see the help documentation in the IDE for the specific steps to create the deployment file). In the deployment file wizard, there is a drop down menu that allows you to set the max memory footprint for your application.
Also, you need to check the size of memory on the server that you are deploying to.
Thirdly, are you using any type of technology that is trying to pre-load a ton of objects (EJB, Spring Ioc, Servlets etc.)?
Even though Java "doesn't have memory leaks", it does if tons of objects are created and the reference to those objects are not released.
Did you use ADF to create the application? An app based on ADF may be trying to load a lot of database objects on start-up (ADF loves EJB).
I hope I am sending you in the right direction. Let me know how things go.