Manno15 commented on a change in pull request #1650:
URL: https://github.com/apache/accumulo/pull/1650#discussion_r451441917



##########
File path: 
server/gc/src/main/java/org/apache/accumulo/gc/SimpleGarbageCollector.java
##########
@@ -669,14 +665,13 @@ private HostAndPort startStatsService() {
   /**
    * Checks if the system is almost out of memory.
    *
-   * @param runtime
-   *          Java runtime
+   * @param candidateLength
+   *          Candidate Length
    * @return true if system is almost out of memory
-   * @see #CANDIDATE_MEMORY_PERCENTAGE
+   * @see #CANDIDATE_BATCH_SIZE
    */
-  static boolean almostOutOfMemory(Runtime runtime) {
-    return runtime.totalMemory() - runtime.freeMemory()
-        > CANDIDATE_MEMORY_PERCENTAGE * runtime.maxMemory();
+  static boolean almostOutOfMemory(Long candidateLength) {

Review comment:
       That is what I originally had but was unsure on if removing the test was 
a good idea.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to