How can I study the server load/impact impact of my PHP scripts in a shared hosting environment?
October 13, 2008 9:35 AM
Subscribe
How can I study the server load/impact of my PHP scripts in a shared hosting environment?
The hosting company isn't very helpful. I want to be proactive and not wait for a call that my scripts are causing trouble. Also want a website that isn't slow and unresponsive. The server is Apache2 w/PHP5
I'd like to learn in general terms about it but the specific case I have is as follows:
I'm building a website that does a lot of thumbnailing using phpthumb(). I send an AJAX request to the server to generate thumbnails and return a list of SRC tags. This puts a certain load to the server. phpthumb() caches the thumbnail so the load happens only once
I want to also have PHP look up and return the dimensions of the original image using getImageSize. This is additional load and caching wouldn't happen. If I do the lookup 100 times/second would it overwhelm the server?
Is it something I should be concerned about? I have no idea about how my scripts might affect the server. The site gets about 15k hits per day and is growing.
Thanks
posted by jorlando to computers & internet (3 comments total)
1 user marked this as a favorite
While running, you'll be interested in monitoring CPU Utilization and RAM utilization. You will be unable to certify that your system will meet any particular performance level (there's too much variability between whatever your hardware is and what they are running in production, not to mention whatever random scripts are running on that box), but you can identify things that take too long and verify that your caching, etc is working as desired.
posted by jenkinsEar at 10:04 AM on October 13, 2008