aspose file tools*
The moose likes Servlets and the fly likes Avoiding Heap Space Memory Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
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: 3830
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