This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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: 39084
    
  23
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.
 
GeeCON Prague 2014
 
subject: Heap Size