Hello!

In your thread dump I observe that context creation is still underway
(org.apache.catalina.mbeans.MBeanFactory.createStandardContext)

No load is passed to Apache Ignite yet.

Regards,

-- 
Ilya Kasnacheev

2018-08-11 12:09 GMT+03:00 Dmitriy <[email protected]>:

> Hello Igniters,
>
> I'm using an spring web application with the embed Ignite cache.
> When we run in unit-tests, the insertion time into the cache is about 10
> 000
> values/seconds.
> But when the application is running on the Apache Tomcat server, the insert
> is very slow (about 5 minutes).
> The application runs on one node.
> CPU usage: 15-20%.
> threaddump.txt
> <http://apache-ignite-users.70518.x6.nabble.com/file/t1980/threaddump.txt>
>
>
> So do you have any idea what the problem could be?
>
>   @PostConstruct
>   public void putAllCache() {
>     Map<CacheId, DataUnit> map = new HashMap<>();
>     for (long l = 0; l < 10_000L; l++) {
>       map.put(
>         new CacheId(new Random().nextLong(), new Random().nextLong()),
>         new DataUnit(new Random().nextLong(), new Random().nextLong(), new
> Random().nextLong())
>       );
>     }
>
>
>     IgniteConfiguration configuration = new IgniteConfiguration();
>     String regionName = "MyRegion";
>     DataRegionConfiguration dataRegionConfiguration = new
> DataRegionConfiguration();
>     dataRegionConfiguration.setName(regionName);
>     dataRegionConfiguration.setMaxSize(DataUnits.MEGABYTE.getBytes(1024));
>     dataRegionConfiguration.setPersistenceEnabled(false);
>     DataStorageConfiguration dataStorageConfiguration = new
> DataStorageConfiguration();
>     dataStorageConfiguration.setDataRegionConfigurations(
>       new DataRegionConfiguration[] {dataRegionConfiguration}
>     );
>     configuration.setDataStorageConfiguration(dataStorageConfiguration);
>
>     Ignite ignite = Ignition.getOrStart(configuration);
>     String cacheName = "MyCache";
>     CacheConfiguration<CacheId, DataUnit> cacheConfiguration = new
> CacheConfiguration();
>     cacheConfiguration.setName(cacheName);
>     cacheConfiguration.setIndexedTypes(CacheId.class, DataUnit.class);
>     cacheConfiguration.setDataRegionName(regionName);
>     cacheConfiguration.setBackups(1);
>     cacheConfiguration.setCacheMode(CacheMode.PARTITIONED);
>     cacheConfiguration.setAtomicityMode(CacheAtomicityMode.TRANSACTIONAL);
>
>     IgniteCache<CacheId, DataUnit> cache =
> ignite.getOrCreateCache(cacheConfiguration);
>
>     LOGGER.info("Start putAll.");
>     cache.putAll(map);
>     LOGGER.info("End putAll.");
>   }
>
> 11:28:23.456 [RMI TCP Connection(2)-127.0.0.1] TX[] INFO
> c.p.o.b.d.a.s.t.i.i.PutAllTest - Start putAll.
> 11:33:23.881 [RMI TCP Connection(2)-127.0.0.1] TX[] INFO
> c.p.o.b.d.a.s.t.i.i.PutAllTest - End putAll.
>
>
> Dmitriy
>
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>

Reply via email to