[pmwiki-users] Site not responding

Patrick R. Michaud pmichaud at pobox.com
Thu Jan 4 17:30:02 CST 2007


On Fri, Jan 05, 2007 at 08:16:03AM +0900, Shaney Crawford wrote:
> Hi Patrick,
> 
> It is 270 KB.  Is that too big?

Hmm, I wouldn't think that 270KB would be too large, but it might be.
(Just to verify -- are you sure it's 270KB and not 2.7MB? ;-)

You might try moving the .total_counter file somewhere else
(or renaming it) and then re-enabling the TotalCounter recipe.
All of the counts will go back to zero for this test, but we can 
at least see if the site runs with TotalCounter enabled again.  

If it runs with an empty .total_counter file, then I suspect the
amount of data being processed may be the issue (or an issue).
If there's still a problem even when the .total_counter file is
small or non-existent, that tells me says we probably need to be 
looking somewhere else.

In looking at the total_counter_1_6.php script, I also notice
some likely problems related to the handling of the .lock file
for TotalCounter.  There are more than a few race conditions 
present (i.e., it's possible, even likely, for two or more 
processes to be accessing the file at the same time), and I 
think it may also be possible for some processes to become 
blocked entirely.  But I need to look into that a bit further.

Pm


> On 1/5/07, Patrick R. Michaud <pmichaud at pobox.com> wrote:
> >On Fri, Jan 05, 2007 at 07:48:03AM +0900, Shaney Crawford wrote:
> >> Hi,
> >>
> >> I am not 100% sure, but it might have been a problem with the following
> >> recipe.
> >>
> >> totalcounter_1_6.php
> >>
> >> I have used totalcounter for a long time, though, and never had
> >> problems with it, so I am not convinced that it is the real problem.
> >
> >Out of curiosity -- how big is the .total_counter file in your
> >wiki.d/ directory?
> >
> >I'm wondering if it has become too large to load into memory, since
> >I don't see anything in the TotalCounter recipe that
> >clears out old entries into the $TotalCounter array.  Thus the
> >$TotalCounter array just keeps getting larger and larger, until
> >eventually it takes up too many resources to be able to produce
> >a page and/or process the .total_counter file.
> >
> >> Could it be a problem with the beta version of pmwiki?  (That is what
> >> my hosting company suggested I look into.)
> >
> >I doubt it's related to the beta version of PmWiki -- that's
> >what is running on the pmwiki.org site.  It really sounds to me
> >as though a recipe (in this case, totalcounter) is growing
> >ever larger and not releasing the resources it's using.
> >
> >I'm not sure why the site would be slow even after removing
> >totalcounter from the configuration -- it may be that
> >there is something else eating up resources (and that cleared
> >itself off).
> >
> >I'll be glad to help troubleshoot further.  I really am
> >curious about the size of the .total_counter file -- if it's
> >really large, and the recipe really doesn't have a mechanism
> >for periodically reducing the size of the file, then every
> >site that is running TotalCounter will eventually run into
> >this problem (or will experience extremely slow load times
> >as the TotalCounter recipe has to process the ever-larger
> >data file).
> >
> >Pm
> >
> >
> >
> >
> >> On 1/5/07, Patrick R. Michaud <pmichaud at pobox.com> wrote:
> >> >On Thu, Jan 04, 2007 at 07:49:42AM +0900, Shaney Crawford wrote:
> >> >> On 1/4/07, dso <dso at moosoft.com> wrote:
> >> >> > Shaney Crawford wrote:
> >> >> > > My site is not responding for some reason.  It was fine yesterday
> >> >> > > morning, but then in the afternoon, it was not responding.  I 
> >didn't
> >> >> > > make any changes to it during that time.
> >> >> >
> >> >> > Probably some kind of loop caused by a recipe.  Try disabling them 
> >and
> >> >> > then adding them back.  I've also had to change the order on a few 
> >of
> >> >them.
> >> >>
> >> >> That seems to have worked.  Thank you!
> >> >>
> >> >> I'm not sure why it happened all of a sudden since I didn't add any
> >> >> recipes yesterday.  Very strange.
> >> >
> >> >Which recipe(s) appeared to be causing the problem?  We should
> >> >probably see about fixing the recipe to avoid the problem, or
> >> >at least leave a note on the page in case others encounter the
> >> >same difficulty.
> >> >
> >> >Pm
> >> >
> >> >
> >> >_______________________________________________
> >> >pmwiki-users mailing list
> >> >pmwiki-users at pmichaud.com
> >> >http://www.pmichaud.com/mailman/listinfo/pmwiki-users
> >> >
> >
> >_______________________________________________
> >pmwiki-users mailing list
> >pmwiki-users at pmichaud.com
> >http://www.pmichaud.com/mailman/listinfo/pmwiki-users
> >




More information about the pmwiki-users mailing list