Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

OutOfMemory Exception. Please Help!

 
Subhashini Sekar
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 75
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
saikrishna cinux
Ranch Hand
Posts: 689
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanx .
but how can i know the current heap size of my JVM???
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Tom Pridham
Ranch Hand
Posts: 92
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic