Memory consumption estimator for Java extracted from Spark