jQuery in Action, 2nd edition*
The moose likes Java in General and the fly likes Heap Size Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Heap Size" Watch "Heap Size" New topic
Author

Heap Size

Madhumitha Baskaran
Ranch Hand

Joined: Feb 27, 2010
Posts: 66
Hi ,
I am calling a web service and getting some data out of it. As the data is very huge, it throws Java Heap Size:Out of memory error.

So i am setting maximum heap size as 100 MB after which it worked properly.

But is there any way to determine maximum heap size depending on the size of the output.?

Is there any calculation available for finding optimal heap size?

Please help me

Thanks,
Madhu
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Please don't post the same question in more than one forum.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Madhumitha Baskaran
Ranch Hand

Joined: Feb 27, 2010
Posts: 66
I am not able to find out the appropraite forum for this question. Sorry
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38007
    
  22
Madhumitha Baskaran wrote:I am not able to find out the appropraite forum for this question. Sorry
Not here. Java in General more likely. Moving thread. It can sit alongside its closed twin.
 
wood burning stoves
 
subject: Heap Size
 
Similar Threads
JVM Heap Size
Heap Dump Issue POI Jar
Heap Size
OutOfMemoryError
Tomcat and Optimizeit throwing Out of memory error