我们已经创建了下面的代码GroupByVisitor: -释放内存后GetFeatures Geotools
GroupByVisitor visitor = new GroupByVisitorBuilder().withAggregateAttribute(CQL.toExpression(strColumn))
.withAggregateVisitor("Count").withGroupByAttribute(CQL.toExpression(strColumn)).build();
此时所使用的内存是150-180Mb。 并用下面的代码应用此之后: - 这点存储器之后
sfc.getFeatures().accepts(visitor, null);
visitor.getResult()
跨越1800Mb。但在此之后不会发布。 如何在获取所有值后释放内存?
甚至System.gc();
还没有释放所有的内存。
什么样的对象是sfc? –
'SimpleFeatureSource' –
@iant我们如何在'SimpleFeatureSource'上调用'GetFeatures()'之后释放内存请建议。 –