[ubuntu] LAMP runs out of memory, but no indication why?

view story

http://ubuntuforums.org – Is there some way to have Ubuntu report what memory all programs are using, when the "out of memory killer" is run in an emergency? I have a really simple LAMP server running "CMS Made Simple" for a school district website. It was originally configured with 512 megs of memory in a VM. It ran fine all summer long with almost no one using it. Then when school starts with many people using it, it runs for a while, then runs out of memory in the morning for unknown reasons, and the "out of memory killer" kills the SQL database. Down goes the website. I increas (Hardware)