ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ctranxuan <cedric.tranx...@streamdata.io>
Subject Lots of cache creation become slow
Date Tue, 11 Apr 2017 09:53:06 GMT
We are trying for test purposes to create lots of cache on a machine.
Something like:

for (int i = 0; i < 10000; i++) {
      IgniteCache<Long, Snapshot> cache;
      cache = ignite.<Long, Snapshot>getOrCreateCache("cache-" +
      LOGGER.info("starting to read cache #" + cache.getName());

What we are noticing is that after ~200 caches created, the cache creation
becomes slower and slower. For instance, when reaching the 2000th cache, it
takes between 2-3 seconds. For instance, here some logs:

09:34:27.857 starting to read cache #cache-2087 
09:34:29.621 starting to read cache #cache-2088 
09:34:31.450 starting to read cache #cache-2089 
09:34:33.127 starting to read cache #cache-2090

That's may be a naive way of doing that and may be a naive question: but is
it normal that the more cache is created, the more time the creation takes?

The program is run on a 12GB RAM machine with 4 CPUs with a Java 8

Thanks in advance for the answers! 

View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Lots-of-cache-creation-become-slow-tp11875.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

View raw message