• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

OutOfMemory Exception. Please Help!

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 689
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanx .
but how can i know the current heap size of my JVM???
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic