Can anyone answer below given queries:
UseCase-1. I have a web based application in which I have a Map with pre-populated data of domain objects (around 60 objects which are read from serialized file of approx 6 MB) where I want to put all of these objects into Gemfire Cache and retrieve the same using a client on another machine:
1. While creating a cached region, which is the best through cache.xml file or java?
2. Which type of cache to be used in this scenario, REPLICATED or PARTITION, as I have come to know that PARTITION is best suited for Server configurations and replicated for small usually client side configurations?
3. What is the default memory configuration for 32bit JVMs & how can we increase the memory in both the above cases, which attributes to increase and its maximum limit?
4. I was getting out of memory and sometimes stack exception with below given cache settings:
cache-type = PARTITION
local-max-memory="50" increased to "5000000"
redundant-copies="0" increased to "1"
bucket-size="113"
How can I avoid such exception in future?
5. Please give an example of cache configuration for this Use-Case for server as well as client, means whether both should be REPLICATED or PARTITION and what should be the attributes along with its value?
6. Do we have any API for retrieving the values from region the same way we put the values into Region like Region<String, Map<String, Object>>
Thanks,
Aqamah