On Wed, Jun 01, 2011 at 11:43:30AM +0200, L B wrote: > On Wed, Jun 1, 2011 at 9:52 AM, L B <[email protected]> wrote: > > This amazing patch fixed the issue, so it has something to do with the > > minifier: > > > > --- lib/RT/Squish/JS.pm.orig 2011-06-01 07:50:27.510862133 +0000 > > +++ lib/RT/Squish/JS.pm 2011-06-01 07:45:55.096115642 +0000 > > @@ -110,7 +110,7 @@ > > $RT::Logger->debug("can't load JavaScript::Minifier: $@"); > > } > > else { > > - $content = JavaScript::Minifier::minify( input => $content ); > > + #$content = JavaScript::Minifier::minify( input => $content ); > > } > > } > > return $content; > > > > -- > > L.B. > > > > But it doesn't solve the slowness for Display.html page. Displaying a > ticket still need the 7seconds.
All this patch will do is solve the once per child slowness of squishing the JS by reverting to simple concatenation. Children should be answering multiple requests before being reaped and needing to resquish. If you're seeing this JS related slowness on every page, it points to other problems. Please provide details about your installation such as your apache versions and configuration otherwise it's quite difficult to test. We've tried replicating in house, but haven't seen this in any of our test or production RT4 instances. If you're seeing particular slowness on a given page, RT4 contains a new feature to allow you (as an admin) to see if there are particular SQL statements causing problems. Because it is debugging, it will cause other slowness in RT and should not be left on, but StatementLog will expose queries in the admin UI and allow you to see if something needs indexing or optimization. -kevin
pgpxjB694h4gH.pgp
Description: PGP signature
