Skip to content

Commit

Permalink
explicitly call garbage collector after updating results
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristian Goina committed Apr 1, 2024
1 parent d6ae51f commit 781625e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 781625e

Please sign in to comment.