Proper way to compute resident memory which uses ZGC