There is more to that message showing the file wanting the memory. Is it always the same file or different??

Use top as suggested to see what programs are using most memory. It usually is mysql unless you have a poorly written script.