Yii Application Stops Responding

Hi all, I have a question about my yii app that I have running on AWS elastic beanstalk.

It seems that after a couple of weeks or so the app just stops responding Is there a way to debug or find out what is causing the issue? I usually just work around the issue by restarting the app server or rebuilding the environment

Any suggestions or tips will help! Thanks!

Try to see server’s log (apache log)

[Thu Jun 27 15:02:23 2013] [error] (12)Cannot allocate memory: fork: Unable to fork new process

Seems to be a memory issue. Trying to track that down now…

Restart Apache

Amazon’s infrastructure already beat me to the punch. After a certain period of time it removed my instance and created a new one. While this solves the problem temporarily, odds are it will happen again in a few weeks. I’m wondering if there’s a way I can reproduce this or test out my php code to see if there’s a memory leak.