[jboss-user] [JBossCache] - Single Node with multiple data items vs Multiple Nodes with

ritukedia do-not-reply at jboss.com
Fri Oct 27 08:34:58 EDT 2006


Hi All,

We are investigating the suitability of using JBossCache with Berkley DB JE for our application. 

We have come across a strange behaviour when JBossCache persists data items to BDB JE:

When multiple instances of a class are inserted in cache as multiple data items in a single node of JBoss TreeCache, i.e. under the same FQN - the size of the BDB varies significantly as compared to when the same no of multiple instances are inserted in cache in separate nodes of TreeCache, i.e. under different FQNs 

The difference in BDB file size is in the order of 50X. The multiple node with single data item each results in much much smaller BDB file. The single node with multiple data items results in 50 times bigger BDB file.

To rule out the problem from the BDB size, I performed the same test as above by directly inserting objects in BDB (instead of using BDB as a cache persistence layer). From BDB's perspective having a single data entry vs having multiple data entries does not make any difference to the size of the jdb file. It is the same in both cases.

We would very much appreciate any help in understanding this behaviour of JBossCache and also to understand the recommended approach for caching. 

Thanks in advance, 
Best Regards,
Ritu Kedia




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

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



More information about the jboss-user mailing list