[rt-users] Tuning RT4

Ruslan Zakirov ruz at bestpractical.com
Tue Aug 2 15:39:01 EDT 2011


Hi,

For every web request you should see a profile dumped to stderr. If
it's a standalone server then it's dumped into console. If it's apache
then into apache's error log. This profile shows which components take
more time to run.

On Tue, Aug 2, 2011 at 11:07 PM, Dave Pascoe <davekm3t at gmail.com> wrote:
> Sorry for the delay in responding to this.  I have been away and distracted.
> I enabled MasonX::Profiler but can't figure out where the debug info gets
> written.
> Trying to get to the bottom of what exactly is slow because it is bad enough
> that it destroys my workflow.
> Dave
>
> On Mon, Jul 25, 2011 at 9:32 AM, Kevin Falcone <falcone at bestpractical.com>
> wrote:
>>
>> On Sat, Jul 23, 2011 at 12:05:37AM -0400, Dave Pascoe wrote:
>> >    I would love to learn what you find. I am also experiencing slowness
>> > with 4.0.1 compared to
>> >    3.8.x. Very noticeable - page turnaround time at least 2-3 seconds
>> > longer, and sometimes
>> >    longer than that. Relevant part of my Apache config:
>>
>> What exactly is slow?  Without knowing the part of the stack which is
>> being slow, it's hard to fix anything.  If you turn on
>> MasonX::Profiler it may be possible to get a much better sense of the
>> problem.
>>
>> You can also see a detailed explanation of the "javascript
>> minification is slow" problem that occurs for some users on this
>> ticket:
>>
>> http://issues.bestpractical.com/Ticket/Display.html?id=17673
>>
>> You can log in as guest/guest
>>
>> >    # Added for attempt at tuning
>> >                    PerlSetVar MasonStaticSource true
>> >                    PerlSetVar MasonBufferPreallocateSize 4096000
>> >                    PerlSetVar MasonDataCacheDefaults "cache_class=>
>> > MemoryCache, cache_depth =>
>> >    4"
>> >                    PerlSetVar MasonPreloads '/Elements/*'
>> >                    PerlSetVar MasonPreloads '/Ticket/*'
>> >                    PerlSetVar MasonPreloads '/Articles/*'
>> >                    PerlSetVar MasonPreloads '/Dashboards/*'
>> >                    PerlSetVar MasonPreloads '/NoAuth/*'
>> >                    PerlSetVar MasonPreloads '/Tools/*'
>> >                    PerlSetVar MasonPreloads '/User/*'
>> >                    PerlSetVar MasonPreloads '/Widgets/*'
>> >                    PerlSetVar MasonPreloads '/Helpers/*'
>>
>> Do you find that these help?
>>
>> -kevin
>>
>>
>> --------
>> 2011 Training: http://bestpractical.com/services/training.html
>
>
>
> --------
> 2011 Training: http://bestpractical.com/services/training.html
>



-- 
Best regards, Ruslan.



More information about the rt-users mailing list