-
1. Re: Infinispan Server mode performance
galder.zamarreno Jan 16, 2012 4:31 AM (in response to zooflyer)What's JCS 1.3?
-
2. Re: Infinispan Server mode performance
zooflyer Jan 16, 2012 7:21 AM (in response to galder.zamarreno)a java cache system,from Apache
-
3. Re: Infinispan Server mode performance
galder.zamarreno Jan 16, 2012 8:35 AM (in response to zooflyer)Right, could you upload the extensions (code + config) that you've added to RadarGun in order to test these two products? The first thing to check is whether you're comparing the same thing...
-
4. Re: Infinispan Server mode performance
sannegrinovero Jan 16, 2012 8:41 AM (in response to galder.zamarreno)Right, that's a very low performance and there must be something wrong with the configuration. There where some bugs in Infinispan 5.1 which we just solved related to performance in transactional mode, but I guess you're not using it with transactions since JCS doesn't support them?
Anyway, we expect to deliver a great performance boost in 5.1.0.Final, to be released very soon. (but even so 61k is insanely low)
-
5. Re: Infinispan Server mode performance
zooflyer Jan 16, 2012 8:54 AM (in response to sannegrinovero)hey,thank you for the reply,you are right,I didn't use them with transactions.I just want to use infinispan instead of jcs which I use now.
In the local mode,infinispan is pretty good,but we need server mode.jcs use rmi for server mode,it's different with infinispan.
do you know how to set the configuration of infinispan,I used default setting of hotrod mode withou any config.
here is my jcs config and code:
-
InfinispanWrapper.java.zip 1.3 KB
-
local_cache.ccf.zip 403 bytes
-
JCSWrapper.java.zip 802 bytes
-
-
6. Re: Infinispan Server mode performance
manik Jan 16, 2012 9:05 AM (in response to zooflyer)I'd certainly like to see such configs here. Such a massive difference can only really mean a misconfiguration, such as perhaps once product using transactions or writing through to disk and the other not.
-
7. Re: Infinispan Server mode performance
galder.zamarreno Jan 16, 2012 10:13 AM (in response to zooflyer)@Mark, I can't access JCS source code easily (src package not uploaded by JCS), but I was able to run your configuration and a simple test of JCS without starting any separate process:
JCS.setConfigFilename("/local_cache.ccf"); JCS cache = JCS.getInstance("default"); cache.put("hello", "world"); final Object value = cache.get("hello"); System.out.println(value); assert value.equals("world");
So I get the feeling that you're comparing in-memory access of JCS vs remote Infinispan access which is not comparable.
-
8. Re: Infinispan Server mode performance
zooflyer Jan 16, 2012 8:25 PM (in response to galder.zamarreno)Hey,did you get the exception like this?JCS will create a local cache when it can't get the remote accesss object.
java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is:
java.net.ConnectException: Connection refused: connect
I'm sure I access JCS with remote,the console of jcs server print operate log.
-
9. Re: Infinispan Server mode performance
galder.zamarreno Jan 18, 2012 7:19 AM (in response to zooflyer)@Mark, can you provide information on how you're configuring the remote JCS server and how you are starting it (including program parameters)? It's not very clear from the documentation how to do this.
-
10. Re: Infinispan Server mode performance
zooflyer Jan 18, 2012 7:35 AM (in response to galder.zamarreno)sure
-
log4j.properties.zip 262 bytes
-
remote_cache.ccf.zip 568 bytes
-
JCSServer.java.zip 1.1 KB
-
-
11. Re: Infinispan Server mode performance
galder.zamarreno Feb 2, 2012 2:47 AM (in response to zooflyer)@Mark, apologies for the delay. Basically, in the configuration you have, JCS clients have a near cache at the client level. So, this means that when something it's stored, it's stored in both the client and the server. Now, when the get operation comes, this is resolved locally in the client, which is where the performance difference comes from (get resolves locally in-memory as opposed to needing to go remote over the network).
Hot Rod so far does not have a near cache layer, but we've already been experimenting with Infinispan in-memory caches that delegate to Hot Rod servers to create near cache environments. We have a prototype in our demo/ section in the distribution, but it's functionality is limited and uses JMS to invalidate data in clients. For Infinispan 5.2, we're working on a notification system over Hot Rod that would provide native support for near cache patterns like the one JCS uses.
Essentially, the comparison above is not comparing the same thing
-
12. Re: Infinispan Server mode performance
zooflyer Feb 2, 2012 8:34 PM (in response to galder.zamarreno)Thank you for answer,we'll use infinispan as our cache system.