Xdebug is a powerful tool for debugging PHP code, but it can be a memory hog when it is continuously turned on. Xdebug can be quickly enabled and disabled by creating simple custom scripts.
A dirty hack but essential at times, the MySQL server consumes higher memory if not configured correctly and due to this the MySQL service is terminated by the OS to save itself from crashing under high traffic.
A simple shell script can be used to restart the MySQL service when it is terminated.