Tags:
create new tag
, view all tags

Question

On a fairly brand new 4.2 installation (Apache, mod_perl) I was seeing fairly decent load times (<3s) for most pages and maybe <10s for TWikiVariables? .

  • Possibly unrelated, but noteworthy: Today, I made the mistake of WYSIWIG editing the TWikiPreferences? pages, horking the icons, and then finally undoing that.

Anyway, as I was poking around to verify that everything is back and happy again, I naturally tried to hit the TWikiVariables? page.

Problems:

  • After 2 minutes, the page still is not loading.
    • I can watch the httpd process suck down >70% of the 800MHz CPU.
    • No errors to speak of anywhere (Apache or TWiki). Just spinning death.
  • Further regression:
    • I can append the ?raw=on and the page comes up almost instantly. Same for the print view
    • Forget the "History" of the page -- simply won't come up.
    • I can even Raw Edit the page..... also quick.
    • However, when I try to save from Raw Edit, it just hangs.
      • Yes, I checked r/w permissions
      • INTERESTING NOTE: Even though I have 664'd the file a few times, I notice that /data/TWiki/TWikiVariables.txt,v is stuck with -r--rw-r--- permissions<?>
      • INTERESTING NOTE 2: When I try to Save the Raw Edit, the permissions get changed (probably a lockout?) to -r--r--r-- (for the ",v") and -rw-r--r-- for the regular .txt file.
      • INTERESTING NOTE 3: After giving up on the save, the permissions (see I.N. 2) do not get fixed from what is noted. Not sure if this is standard behavior.

Questions:

  • Has anyone seen this problem?
  • Could I have corrupted something? answer: no
  • Could the INCLUDE at the top be killing me? answer: no
  • Is there some way to get better debugging info out of TWiki?

Workaround

Okay, after peeling away the onion one small bit at a time (and rolling back Plugins and minor edits), I think I found the workaround. Turns out that there is one variable that will truly mess you up. LINKTOOLTIPINFO is the culprit..... For large pages like TWikiVariables? and TWikiDocGraphics? , having this variable enabled will send the system into meltdown mode. Blech.
  • Alternate 1: In the TWiki.TWikiPreferences you will must use: Set LINKTOOLTIPINFO = off . Turning the LINKTOOLTIPINFO on simply sends the TWikiVariables? page to endless chunk mode.
  • Alternate 2: You can place_ Set LINKTOOLTIPINFO = off _at the top of your TWikiVariables page.
  • Alternate 3: Leave it off for TWiki.TWikiPreferences but enable for your subwebs by setting nor WebPreferences to have the LINKTOOLTIPINFO variable.

NOTE: For serious performance gains, I made sure to Set LINKTOOLTIPINFO = off for the sub-web's WebLeftBar

I will go ahead and mark this question as answered and leave the workaround here for posterity. Hopefully, this is a performance-type issue that can be looked at in some level.

Environment

TWiki version: TWikiRelease04x02x00
TWiki plugins: VarCachePlugin, DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: OS 10.4.11
Web server: Apache 1.3.4 with mod_perl
Perl version: 5.008
Client OS: Mac
Web Browser: Firefox & Safari
Categories: Performance, Fatal error

-- RedByer - 14 May 2008

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

-- RedByer - 15 May 2008

 
Change status to:
Topic revision: r2 - 15 May 2008 - 16:31:29 - RedByer
 
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback