I'v been writing a php application for a about 5 weeks now. Granted, im not the most efficient programmer in the world since its my first php application but I'd like to know how i can gauge the amount of ram my application is running and why it seems that it crashes Apache sometimes.
Yesterday, my webserver was down for over 3hrs because i didnt know that Apache has suffered a Signal 11. I looked around in the logs and it seems that Apache crashed out a few times while i was testing and debugging my script.
Here is what i think caused it. Taken from my logs.
Oct 6 00:03:26 la1008 kernel: pid 39763 (php), uid 1007: exited on signal 10
So now im trying to figure out what it would be as im not seeing any errors when running the script but that doesnt mean that it not eating up ram or something like that.
Iv tried to split up as much of my routines as possible by placing them in include files but the main php script is already 65k. Would it help if i split more of the code into include files as opposed to placing the code into one or two php scripts? Does this help with reducing ram usage and speed or is it something else?
I want to get the application finished but now im wondering what i should do about this.
Any pointers on what i should be do?