added sleep in checkManagedCacheAllocationCausesGC