Thursday, 29 August 2013

jquery ajax cpu high usage

jquery ajax cpu high usage

I am using this ajax.php to get livenews auto update. but sometimes it
causes high cup usage, sometimes (120%) it is running on a apache. can you
please inform me with this issue: the code is:
<?php
$data = file_get_contents('http://elmarada.org');
preg_match("/<ul[^>]*id=\"toautoupdate\"[^>]*>(.*?)<\\/ul>/si", $data,
$match);
echo $match[1];
?>

No comments:

Post a Comment