Prevent CPU and RAM being completely used up by Magento