[jboss-user] [JBoss Cache: Core Edition] - optimal storage parameters for cache node?

sridhar_ratna do-not-reply at jboss.com
Sat May 16 05:10:52 EDT 2009


I am using jboss cache 3.0 stand alone persistence mechanism as BJDB with c3p0 connection pool.
I stored 100,000 key value pairs under a single FQN (node) at the depth of level 3.
There was no data in the intermediate levels except at leaf level.

Key is Long object and value is byte array of size 3k.
So the total data stored in node is around 300 MB

It took 7 seconds to process(read) all the records. 
key things are 
1) there were no modification to the content
2) Prefetch all the records and no eviction mechanism.
3) assigned 1GB RAM to application (it used only 600 MB) (SWAP space was not used by application)

now i distributed 100,000 key value pairs under 10,000 individual FQNs so that each node has 10 key value 
pairs. Now the time taken to process the records is just 1.1 seconds.

But in some other scenario i have a situation where i need to store 10,000 key value pairs where each value 
is 0f 1KB. There is no way that i can distribute them to different FQNs

What i would like to know is some of the statistics like
1) what is the optimal no of key value pairs
2) what is the optimal size of each value in key value pair.
3) what is the optimal size for a node.
4) what is the optimal depth.

Is ther any way that i can get good performance with 10,000 key value pairs under a single node.

Please help me.

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231437#4231437

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231437



More information about the jboss-user mailing list