boolean isProcessTreeOverLimit ( ProcfsBasedProcessTree pTree , String tId , long limit ) { long currentMemUsage = pTree . getCumulativeVmem ( ) ; // as processes begin with an age 1, we want to see if there are processes // more than 1 iteration old. long curMemUsageOfAgedProcesses = pTree . getCumulativeVmem ( 1 ) ; return isProcessTreeOverLimit ( tId , currentMemUsage , curMemUsageOfAgedProcesses , limit ) ; }
method provided just for easy testing purposes