Question
.My wiki page requests take 5-6 seconds to display. Other static html pages appear instantaneously. And the
testenv script also appears instantaneously, so I ruled out some problem with ther Perl interpreter. This happened after a fresh install, no customizations.
- TWiki version: 01 Dec 2001
- Web server: Apache
- Server OS: Redhat 7.1
- Web browser: Doesn't matter - problem happens regardless
- Client OS: Doesn't matter - problem happens regardless
--
MattWalsh - 10 Dec 2001
Answer
Sounds like some timeout problem, maybe of Net::SMTP. Try to narrow it down with debug statements in view and TWiki.pm, like
TWiki::writeDebugTimes( "calling getRenderdVersion" );
Check the output in
twiki/data/debug.txt
--
PeterThoeny - 11 Dec 2001
Ah. Found the problem. The write permission wasn't set for the
twiki/data directory. I think it was timing out trying to write to the log file.
--
MattWalsh - 16 Dec 2001
We have total response times between 5 and 20 seconds. The data directory and the log file are writable. "writeDebugTimes" shows that the view script itself takes only about 2 seconds. In contrast to this, the testenv script has a
total response time of about 2 seconds or less. What else might be the reason for this slow reaction of all other scripts? I don't know Perl. Is there a way to get also the real times and deltas?
--
KlausGuenther - 29 Jan 2002
It could be the number of Perl modules loaded by the
view script (
testenv loads almost no modules), but I'm not a Perl guru so it's hard to say.
It could also be the time needed to load and run
RCS programs (possible if your timing of the
view script excludes external programs). Try turning on the Store.pm exec logging (near top of file) and then run some of the
RCS commands logged in debug.txt from the command line.
You might want to experiment with
ModPerl, which typically speeds things up by a factor of ten, but it's worth diagnosing the bottleneck first before trying this.
--
RichardDonkin - 17 Mar 2002