-
1. Re: how much jvm is required to keep the 3 million records in the cache of jboss data grid.
wdfink Dec 21, 2013 10:38 AM (in response to skadian1)There is only a generic answer as it depends on what you try to store.
Let assume 3 million records, each record 100Bytes that around 300MB.
You need to take in account that the 100Bytes need to be calculated as Object size, this is not only the data payload.
To have a redundancy for failover you might have two instances storing the data, therefore you need to multiply by 2.
So you will need 600MB memory and two JVM's running JDG.
But that's only a part of the story.
You need to measure the CPU load and the GC behaviour in a real test to have an idea what power you need here.
So it will be a bit more work for you and we can only help you to understand it or give you hints.
-
2. Re: how much jvm is required to keep the 3 million records in the cache of jboss data grid.
rhusar Dec 23, 2013 7:08 AM (in response to wdfink)Let assume 3 million records, each record 100Bytes that around 300MB.
You need to take in account that the 100Bytes need to be calculated as Object size, this is not only the data payload.
100 bytes seem to me rather optimistic, the whole formula would be something like:
total size per entry in RAM = size of Key + size of Value + Infinispan overhead (+ JVM overhead)
Which would almost always if not always be more than 100 bytes...
-
3. Re: how much jvm is required to keep the 3 million records in the cache of jboss data grid.
wdfink Dec 23, 2013 12:47 PM (in response to rhusar)Radoslav Husar it was just an example
To get a better view I would recommend to measure this with a smaller test environment.
In that case you have an idea how the complete system behaviour is.