diff --git a/colormipsearch-tools/src/main/java/org/janelia/colormipsearch/cmd/CalculateGradientScoresCmd.java b/colormipsearch-tools/src/main/java/org/janelia/colormipsearch/cmd/CalculateGradientScoresCmd.java index 47dd39ad..28de4e14 100644 --- a/colormipsearch-tools/src/main/java/org/janelia/colormipsearch/cmd/CalculateGradientScoresCmd.java +++ b/colormipsearch-tools/src/main/java/org/janelia/colormipsearch/cmd/CalculateGradientScoresCmd.java @@ -168,6 +168,7 @@ private void calculateAllGradientScores() { long updatesWithProcessedTag = updateProcessingTag(cdMatchesForMask); LOG.info("Set processing tag {} for {} mips", args.getProcessingTag(), updatesWithProcessedTag); } + System.gc(); // explicitly garbage collect }); LOG.info("Finished partition {} ({} items) in {}s - memory usage {}M out of {}M", indexedPartition.getKey(),