You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jcs-users@jakarta.apache.org by Yaswanth <ya...@gmail.com> on 2009/03/16 16:57:29 UTC
Implementing Remote Cache using JCS .
Hi,
I am trying to implement Remote Cache using JCS.
Below is my Server and Client Code. Here are my
http://www.nabble.com/file/p22541180/remote.cache.server.ccf Server and
http://www.nabble.com/file/p22541180/remote.cache.client.ccf Client Cache
configuration files.
My ServerCode :
RemoteCacheServerFactory.main(new String[]{"/remote.cache.server.ccf"});
My Client1 Code :
JCS.setConfigFilename( "/remote.cache.client.ccf" );
JCS cache = JCS.getInstance( "testCache" );
cache.put("Key"+i, "Value"+i); // So many times.. While loop
My Client2 Code :
JCS.setConfigFilename( "/remote.cache.client.ccf" );
JCS cache = JCS.getInstance( "testCache" );
cache.get("Key"+i); // So many times. While loop
I am running a JCS Remote Server and Starting Two Remote Clients.
Using One client i am adding 10K Objects into cache and after that i am
using using another client i am retrieving them. At this time my average
retrieval time is 2.3 Seconds.
When i rerun the test case with 100K objects . My average retrieval rate is
302 Seconds.
I observed that my retrieval rates are very slow, which i think shouldn't
be. Can anyone point out where the problem is ?
Thanks,
Yaswanth
--
View this message in context: http://www.nabble.com/Implementing-Remote-Cache-using-JCS-.-tp22541180p22541180.html
Sent from the JCS - Users mailing list archive at Nabble.com.