Monitor heap usage