Item12480: Memory leak in TablePlugin amasses css styles from all visited pages
Priority: Urgent
Current State: Closed
Released In: 1.1.9
Target Release: patch
Applies To: Extension
Component: TablePlugin
Branches: Release01x01 trunk
When running foswiki (as recommended) using a perl accellerator like mod_perl or fcgi,
TablePlugin will add more and more css to the head of subsequent pages. A %TABLE macro will register css for each table on each page visited. This css is cached internally but never freed from memory again. As a result all further pages get an increasingly large blob of css inlined to the head of the page. In effect your foswiki's performance will degraded rapidly and only free up memory in case the web server is restarted.
Reported by
OlafSeng from 1&1.
Quick fix:
--- lib/Foswiki/Plugins/TablePlugin/Core.pm (revision 16678)
+++ lib/Foswiki/Plugins/TablePlugin/Core.pm (working copy)
@@ -130,6 +130,7 @@
$currTablePre = '';
$combinedTableAttrs = {};
$tableSpecificAttrs = {};
+ $styles = {};
}
Related to
Item12302.
--
MichaelDaum - 29 Apr 2013