Statistics for Detection and Diagnosis of Memory Leaks in Web Applications