PDA

View Full Version : product.php using too much resource


bluegnu
03-06-09, 08:10
Recently I received this message from my site host:

Hi, Recently your account was utilizing excessive resources. Details are as follows: A detail of the problem is shown below as: CPU: 4.45 % Memory: 0.52 % Mysql: 0.0 % /product.php Top Process %CPU 10.0 productlist.php Top Process %CPU 7.0 As a result, we had to disable product.php to chown'ing to root:root, and chmod'ing to 000; also productlist.php Please check your scripts are optimized and up to date. Please note that the acceptable usage range for shared plans is 1.0% average %CPU or less, 1.0% average %Memory or less and Top Processes below 20%. We would suggest to please look into the script's functionality and update it so such issues should not reoccur. We will not be able to provide access to the script until you do so.

What can I do about this?

thanks

Ollie
03-06-09, 09:45
Hi there

This will most likely occur when the script is waiting for a response from the ProductServe servers.

To ensure you minimise the effect on your hosting solution I would check that Caching of pages is enabled (see documentation). This will significantly reduce the number of calls you need to make to the API. Secondly, its probably worth blocking out a number of spiders from hitting your site. I suggest only allowing the but four to crawl your site (Google, Yahoo!, Ask.com and MSN (bing?)). This will in turn reduce your quota usage (:D) and reduce the number of times this page is accessed.

You will always have delays when calling the API although to be honest i would have imagined CPU usage to be at a minimum.

Hope this helps

Ollie