Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Include script fails during traffic spikes

0 views
Skip to first unread message

igotn...@gmail.com

unread,
Feb 26, 2006, 9:41:58 AM2/26/06
to
We are having major issues with our Include scripts, but only through
traffic spikes. We initially thought it was Include directory related,
we played with that for several days and finally got the proper
directory set. During a 3-4 hour daily high traffic spike our Include
no longer works. We get an error that reads:

Unable to open template
http://www.thecalleddomain.com/xmlsrv/rss.php?blog=23&cat=46, exiting

We are using RSS2HTML and as mentioned the script itself loads fine 20
hours per day. This only happens during traffic spikes. But 4 hours of
no data on our index page is humiliating. Can anyone help please?

igotn...@gmail.com

Jim Michaels

unread,
Feb 27, 2006, 6:57:10 PM2/27/06
to

<igotn...@gmail.com> wrote in message
news:1140964917.9...@u72g2000cwu.googlegroups.com...

apparently this is not a new problem with that script.
I would start going through the source code, looking for speed bottlenecks &
memory hogs, and where files or URL's are loaded, that may be the point I
would use @ and log errors.
maybe the server you are feeding from can't handle the load?
if your site uses a lot of MySQL stuff, try using mysql_free_result() a lot.
you'll save precious memory that way.
http://www.feedforall.com/forum/viewtopic.php?t=596&start=0&postdays=0&postorder=asc&highlight=&sid=51d1da7a84b041274080adc41f314c47
http://www.feedforall.com/forum/viewtopic.php?p=2714
http://www.feed24.com/go?item_id=11167914

jeho...@gmail.com

unread,
Mar 1, 2006, 10:13:27 AM3/1/06
to
During and after development I have profiled the speed of the
rss2html.php script. I run in on an old PII Celeron-450, so all CPU
intensive sections will be clearly show. What I have found is that the
processing is always very quick, except on very large (>100K) XML
files. On my slow machine that means less the .25 seconds. However,
it does take 3 to 5 seconds to reach some sites and get back results.
I have confirmed and got similar fetch from remote servers times on our
web hosting company which is very well connected.

There is a caching module available, free for registered uses of
FeedForAll and FeedForAll Mac. It is also available for purchase
separately with other scripts. This module saves a copy of the remote
XML onto local disk for a specified amount of time. This dramatically
speeds up processing, reduces bandwidth and removes the problems of
slow access during peek times.

Jim
FeedForAll Mac, PHP scripts author

0 new messages