static public long computeMinimumHeapRqt ( int tableCount , int sitesPerHost , int kfactor ) { long baseRqt = 384 ; long tableRqt = 10 * tableCount ; // K-safety Heap consumption drop to 8 MB (per node) // Snapshot cost 32 MB (per node) // Theoretically, 40 MB (per node) should be enough long rejoinRqt = ( kfactor > 0 ) ? 128 * sitesPerHost : 0 ; return baseRqt + tableRqt + rejoinRqt ; }
Any changes there should get reflected here and vice versa .