Working with memory used by the JVM for analyzing bigger dataset