iMac hangs when waking up with MAMP running I recently installed the latest MAMP version on my iMac running Yosemite 10.10.4. MAMP runs fine, used it all day and left it running overnight. Upon waking up the iMac, I have noticed the system is hanging:


Websites not opening in Chrome
Stopping servers in MAMP doesn't respond
Force quit Chrome and tried to restart but doesn't work
Opened Safari but it won't open any URL
Beach ball appears when hovering over the Wifi icon
Restarted Mac but system gets stuck on a black screen with a white, spinning icon as if something is in progress
Only way to reuse iMac is through holding the power button and powering back on


I'm relatively new to OSX so not entirely sure where to look and how to diagnose. The only theory I have at the moment is that MAMP is somehow hanging the system (it's the only recent change to the system other than Ruby on Rails and a few other development frameworks installed but I haven't used these in a few days).

Any ideas on where to look or how to diagnose?
This may not answer your question directly, but it is a solution....

I am not a fan of doing dev work on my production Mac.  I also don't see any value in setting up a MAMP server because it will be a very rare occurrence that you get a hosting provider with MAMP setup.  Chances are it will be LAMP and by a very small margin, WAMP.

Why not set up a LAMP box with CentOS in a virtual machine.  VirtualBox would be a good choice for this.  The beauty with this is that when your Mac goes to sleep, it automatically puts the VM into a saved state - meaning when wakes, it is right where it left off.

The other huge benefit is that you can move that VM to other machines where as your MAMP setup, you are pretty much bound to your hardware.

Just a thought....