aspose file tools
The moose likes Java in General and the fly likes Heap Size 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 » Java in General
Reply Bookmark "Heap Size" Watch "Heap Size" New topic
Author

Heap Size

Madhumitha Baskaran
Ranch Hand

Joined: Feb 27, 2010
Posts: 62
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: 62
I am not able to find out the appropraite forum for this question. Sorry
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 32654
    
    4
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.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Heap Size
 
Similar Threads
JVM Heap Size
Heap Size
Heap Dump Issue POI Jar
Tomcat and Optimizeit throwing Out of memory error
OutOfMemoryError