Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Heap Size

 
Madhumitha Baskaran
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please don't post the same question in more than one forum.
 
Madhumitha Baskaran
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not able to find out the appropraite forum for this question. Sorry
 
Campbell Ritchie
Sheriff
Posts: 48404
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic