We have created a GroupByVisitor with the following code:-
GroupByVisitor visitor = new GroupByVisitorBuilder().withAggregateAttribute(CQL.toExpression(strColumn))
.withAggregateVisitor("Count").withGroupByAttribute(CQL.toExpression(strColumn)).build();
At this point the memory in use is 150-180Mb . and after applying this with the following code:-
sfc.getFeatures().accepts(visitor, null);
visitor.getResult()
after this point memory crosses 1800Mb. but not release after this. How to release memory in this after we get all the values?
even System.gc();
has not release all the memory.