aspose file tools*
The moose likes Oracle/OAS and the fly likes OutOfMemory Exception. Please Help! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Oracle/OAS
Bookmark "OutOfMemory Exception. Please Help!" Watch "OutOfMemory Exception. Please Help!" New topic
Author

OutOfMemory Exception. Please Help!

Subhashini Sekar
Greenhorn

Joined: Nov 15, 2005
Posts: 9
Hi,

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.

Regards,
Subhashini
Rodrigo Alvarez
Ranch Hand

Joined: Apr 10, 2006
Posts: 75
Hi,


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.

Cheers


It is a mistake to think you can solve any major problems just with potatoes.<br />--Douglas Adams
saikrishna cinux
Ranch Hand

Joined: Apr 16, 2005
Posts: 689
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
SCJP 1.4
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

You'll have to look at the documentation for OAS.
Tomcat has a manager application that displays this type of server information.
I'm sure OAS has something similar.

I'm going to move this to the Oracle forum since the issue has more to do with configuring your server than servlets.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Tom Pridham
Ranch Hand

Joined: Feb 06, 2001
Posts: 92
Greetings,

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.

Regards & God Bless,
Tom Pridham
Coastal Software Solutions, Inc.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: OutOfMemory Exception. Please Help!