Includes Eating Up Resources?!
Posted: Thu Mar 02, 2006 1:15 pm
Hi,
I have a site that is getting pounded with traffic. Basically, all of the available Apache processes are being taken up. I have already determined that it is not a DOS attack, but legitimate traffic.
My Hosting Provider thinks the problem is being exacerbated by my PHP includes. I am using includes on most of my pages for dropping in redundant navigation and header code. The includes themselves are straight HTML. Nothing fancy. Simple code reuse.
My host seems to think that these includes are using extra processes. For example, a page that calls for a header include and a navigation include is using three processes. A couple of variables that may or may not matter: 1. For the sake of simplicity my include line uses an absolute path (i.e. http://www....) 2. My pages are all HTM pages being processed as PHP pages.
I don't really want to have to copy that code into every page. Seems stupid.
Any thought?
Thanks,
Mike
I have a site that is getting pounded with traffic. Basically, all of the available Apache processes are being taken up. I have already determined that it is not a DOS attack, but legitimate traffic.
My Hosting Provider thinks the problem is being exacerbated by my PHP includes. I am using includes on most of my pages for dropping in redundant navigation and header code. The includes themselves are straight HTML. Nothing fancy. Simple code reuse.
My host seems to think that these includes are using extra processes. For example, a page that calls for a header include and a navigation include is using three processes. A couple of variables that may or may not matter: 1. For the sake of simplicity my include line uses an absolute path (i.e. http://www....) 2. My pages are all HTM pages being processed as PHP pages.
I don't really want to have to copy that code into every page. Seems stupid.
Any thought?
Thanks,
Mike