ignite icon indicating copy to clipboard operation
ignite copied to clipboard

heap size issue similar to https://issues.apache.org/jira/browse/IGNITE-8892

Open mohanarao1 opened this issue 1 year ago • 0 comments

We are seeing memory issue like exact mentioned in below Jira ID https://issues.apache.org/jira/browse/IGNITE-8892

Other Details ::

  1. We use ignite-core-2.16.0.jar still this issue is seen.
  2. ignite client is started in tomcat to connect to the server ClientConfiguration cfg = new ClientConfiguration().setAddresses(addresses); IgniteClient client = Ignition.startClient(cfg);
  3. ignite server is loaded with 1M data using code like below ClientCache cache = client.cache("cache-name"); for (Object object : arrayList) { cache.put(UUID.randomUUID().toString(), object); }
  4. facing the heap size issue (of 8M records even if we have 1M records in cache) and tomcat crashes

Object will be our own objects which we send to the below Filter. IgniteBiPredicate<String, Object> filter1 = new IgniteBiPredicate<String, Object>() { @Override public boolean apply(String k, Object obj) { return <matchValue>.equals(obj.getVa........); } };

try (QueryCursor<Cache.Entry<String, Object>> qryCursor = cache.query(new ScanQuery<>(filter))) { qryCursor.forEach(entry -> { matchedList.add(entry.getValue()); }); } after executing above code memory issue is seen.

Can somebody pls help on this issue ?

mohanarao1 avatar Oct 14 '24 10:10 mohanarao1