Added two new events for signalling when the memory (pkg or shm) exceeds a
certain threshold