Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to handle large heap requirement

 
Atul Prajapati
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Our Application requires large amount of heap memory to load data in memory for further processing.

Application is load balanced and we want to share the heap across all servers so one server can use heap of other server.
Server1 and Server2 have 8GB of RAM and Server3 has 16 GB of RAM.

If any request comes to server1 and if it requires some more heap memory to load data, in this scenario can server1 use serve3’s heap memory?

Is there any mechanism/product which allows us to share heap across all the servers? OR Is there any other way to handle large heap requirement issue?


Thanks,
Atul
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Memory used by one JVM can not be seen by another one on another server so a shared heap is out of the question.

Are you really sure that processing a single request requires the entire heap?

Sharing large amounts of data is commonly done with a database.

Bill
 
Atul Prajapati
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply.

Let us try distributed cache.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you get that working, it would be great if you could follow up with a post outlining how you did it.

Bill
 
Gupta Tarun
Greenhorn
Posts: 22
Hibernate MyEclipse IDE Postgres Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please check if something like Terracotta (http://www.terracotta.org) solves your problem

Regards
Tarun
 
Atul Prajapati
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes Tarun we are planning to try EHcache with Terracotta/Big Memory.

I will update this thread once we are done with this.

Thanks,
Atul
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic