aspose file tools
The moose likes Servlets and the fly likes Avoiding Heap Space Memory Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "Avoiding Heap Space Memory Problem" Watch "Avoiding Heap Space Memory Problem" New topic
Author

Avoiding Heap Space Memory Problem

Ram kanana
Ranch Hand

Joined: Apr 13, 2006
Posts: 34
How to avoid Heap Space Problem?
ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3829
Originally posted by Ram kANANA:
How to avoid Heap Space Problem?


One is, keep your session size as small as possible.
Chetan Parekh
Ranch Hand

Joined: Sep 16, 2004
Posts: 3636
Which Server are you using?


My blood is tested +ve for Java.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

See:
http://www.coderanch.com/t/363414/Servlets/java/Out-Memory-Heap-full-exceptions
Where this is being discussed.

The only heap space problem you can have is "not having enough space allocated for your app".
Anything else is not a heap space problem.

You can make your app more lean (as far as memory goes) by not holding on to object references any longer than needed but, often, letting go of them too soon will make your app less efficient in other respects.

If, by caching objects/data in memory, you can avoid repeated disk i/o or database transactions you can greatly improve the performance of your app.

In other words, there is nothing wrong with an app that requires lots of memory, as long as it's putting it to good use and is running on a machine that has the ram that the app needs.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Avoiding Heap Space Memory Problem
 
Similar Threads
Exeption while writing huge data to excel sheet
startNodeManager.sh and startWeblogic.sh doesn't start to execute
Does the perm size is include in the heap size?
Possible to change heap size while java is running on a Solaris box?
out of swap space in weblogic 9.2 & jdk 1.5 on solaris 9