Chris Hill | 1 Apr 03:43
Picon

[Trac] Problem with slow project listing.


We've got a strange slowdown issue with our projects root listing. 
Nothing else is effected. No individual project has a problem.

Pretty much a textbook setup:

        <Location "/projects">
                SetHandler mod_python
                PythonHandler trac.web.modpython_frontend
                PythonOption TracEnvParentDir "/var/trac"
                PythonOption TracUriRoot "/projects"
                SetEnv PYTHON_EGG_CACHE /tmp

        </Location>

Useful Tidbits:
Trac 10.4
We're using SSL. Problem does not seem SSL-specific.
We have 175 and counting projects.
We've got a couple custom plugins, nothing earth-shattering.

So what we're seeing happening, we think, is that mod_python is loading, 
over and over again, a bunch of plugins, for some unknown reason:

2008-03-31 17:12:20,126 Trac[__init__] DEBUG: Loading egg plugin 
navhider.filter from 
/usr/lib/python2.4/site-packages/TracNavHider-1.0-py2.4.egg
2008-03-31 17:12:20,128 Trac[__init__] DEBUG: Loading egg plugin navadd 
from /usr/lib/python2.4/site-packages/NavAdd-0.1-py2.4.egg
2008-03-31 17:12:20,157 Trac[__init__] DEBUG: Loading egg plugin 
(Continue reading)

Graham Dumpleton | 1 Apr 05:11
Picon

[Trac] Re: Problem with slow project listing.


On Apr 1, 11:43 am, Chris Hill <uberg...@...> wrote:
> We've got a strange slowdown issue with our projects root listing.
> Nothing else is effected. No individual project has a problem.
>
> Pretty much a textbook setup:
>
>         <Location "/projects">
>                 SetHandlermod_python
>                 PythonHandler trac.web.modpython_frontend
>                 PythonOption TracEnvParentDir "/var/trac"
>                 PythonOption TracUriRoot "/projects"
>                 SetEnv PYTHON_EGG_CACHE /tmp
>
>         </Location>
>
> Useful Tidbits:
> Trac 10.4
> We're using SSL. Problem does not seem SSL-specific.
> We have 175 and counting projects.
> We've got a couple custom plugins, nothing earth-shattering.
>
> So what we're seeing happening, we think, is thatmod_pythonis loading,
> over and over again, a bunch of plugins, for some unknown reason:
>
> 2008-03-31 17:12:20,126 Trac[__init__] DEBUG: Loading egg plugin
> navhider.filter from
> /usr/lib/python2.4/site-packages/TracNavHider-1.0-py2.4.egg
> 2008-03-31 17:12:20,128 Trac[__init__] DEBUG: Loading egg plugin navadd
> from /usr/lib/python2.4/site-packages/NavAdd-0.1-py2.4.egg
(Continue reading)

Chris Hill | 1 Apr 05:45
Picon

[Trac] Re: Problem with slow project listing.


>> If we tail -f the log, we can see that there are these pauses where its
>> thinking, then it loads the plugins, then its thinking, then it loads
>> the plugins, and it does this about 30 times. This takes an extremely
>> long time, regardless of what's in index.cs.
>>
>> We're really unsure what Trac's doing, or why. Any thoughts would be
>> appreciated!
>>     
>
> Apache is a multi process web server. Are you sure the messages aren't
> from different Apache child processes?
>
> Also, do you set MaxRequestsPerChild? If you do it would result in
> Apache child processes being recycled when that number of requests is
> being reached. If you have a constant stream of requests, this would
> show as plugin being loaded on a similar regular basis.
>   

Thanks for your quick response!

MaxRequestsPerChild is set to 0 AFAIK.

I am sure that the messages are from the single request, as we are 
watching it happen on our staging server. We can see the same problem on 
production (which makes us want to fix this quickly).

Thanks
C

(Continue reading)

Graham Dumpleton | 1 Apr 05:59
Picon

[Trac] Re: Problem with slow project listing.


On Apr 1, 1:45 pm, Chris Hill <uberg...@...> wrote:
> >> If we tail -f the log, we can see that there are these pauses where its
> >> thinking, then it loads the plugins, then its thinking, then it loads
> >> the plugins, and it does this about 30 times. This takes an extremely
> >> long time, regardless of what's in index.cs.
>
> >> We're really unsure what Trac's doing, or why. Any thoughts would be
> >> appreciated!
>
> > Apache is a multi process web server. Are you sure the messages aren't
> > from different Apache child processes?
>
> > Also, do you set MaxRequestsPerChild? If you do it would result in
> > Apache child processes being recycled when that number of requests is
> > being reached. If you have a constant stream of requests, this would
> > show as plugin being loaded on a similar regular basis.
>
> Thanks for your quick response!
>
> MaxRequestsPerChild is set to 0 AFAIK.
>
> I am sure that the messages are from the single request, as we are
> watching it happen on our staging server. We can see the same problem on
> production (which makes us want to fix this quickly).

Perhaps use a different value for:

  SetEnv PYTHON_EGG_CACHE /tmp

(Continue reading)

max | 1 Apr 04:52
Picon

[Trac] Re: How to use subversion's authz.conf file to control the permission of different folder in a single repository


Hi All
The reason is that I forgot to add
*=
for each different folders in authz.conf

max
On 3月29日, 上午2时20分, Matt Good <m...@matt-good.net> wrote:
> On Mar 27, 7:09 pm, Zoom.Quiet <zoom.qu...@...> wrote:
>
>
>
>
>
> > On Fri, Mar 28, 2008 at 9:39 AM, Noah Kantrowitz <kan...@...> wrote:
>
> > >  authz_file in trac.ini.
>
> > like
> > [trac]
> > authz_file = /svnrepos/conf/authz
>
> > but! attention the authz cfg.
> > for Trac usage u must setup like:
> > [/]
> > *=rw
>
> > not work:
>
> > [reponame:/]
(Continue reading)

Picon

[Trac] how can I make sure user needs to log in before he can access trac?


Hi,

How can I make sure user needs to log in before he can access trac?  I
have tried this command, but i can see browser the code without
logging in.
 $ trac-admin /path/to/projenv permission remove anonymous '*'

Thank you for any help.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users@...
To unsubscribe from this group, send email to trac-users-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Scott Bussinger | 1 Apr 22:57

[Trac] How to display info on Wiki page in box to the right?


I'd like to display some text/links on the right side of a wiki page
in a separate box. I'd like it to look similar to how a
[[PageOutline]] or [[TOC()]] macro would look, just with arbitrary
wiki markup in it.

I keep thinking there must be a way to do this that I haven't seen,
but I haven't found any macros or processors either built-in or as
plugins that seem to have this feature built in.

Can someone help me out here?  Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users@...
To unsubscribe from this group, send email to trac-users-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

IanJ | 1 Apr 23:08
Picon

[Trac] Re: How to display info on Wiki page in box to the right?


You can use the NewsFlashMacro to accomplish this.

http://trac-hacks.org/wiki/NewsFlashMacro

Only difference I can think of from your request is that the box has a
green background. But it contains the functionality your looking.

Ian

On Apr 1, 1:57 pm, Scott Bussinger <sco...@...> wrote:
> I'd like to display some text/links on the right side of a wiki page
> in a separate box. I'd like it to look similar to how a
> [[PageOutline]] or [[TOC()]] macro would look, just with arbitrary
> wiki markup in it.
>
> I keep thinking there must be a way to do this that I haven't seen,
> but I haven't found any macros or processors either built-in or as
> plugins that seem to have this feature built in.
>
> Can someone help me out here?  Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users@...
To unsubscribe from this group, send email to trac-users-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Scott Bussinger | 2 Apr 01:45

[Trac] Re: How to display info on Wiki page in box to the right?


> You can use the NewsFlashMacro to accomplish this.

Thanks!

I did figure out another way though that doesn't require any plugins
and allows a lot of flexibility. The DIV wiki processor does what we
need in conjunction with some standard trac css declarations. It works
in 0.11b2, I'm not sure if it'll work in older versions or not.

This adds a standard box to side (formatted just like a table on
contents box):

{{{
#!div class="wiki-toc"
This goes into a box on the side
}}}

You can tweak the appearance with a bit of CSS code:

{{{
#!div class="wiki-toc" style="background-color: #ffccff"
A second box with a different background color
}}}

Note that you can have more than one on the page and they line up next
to each other. One advantage of this method is that the default colors
and layout would match the standard layouts of the rest of your Trac
site.
--~--~---------~--~----~------------~-------~--~----~
(Continue reading)

Jorge Vargas | 2 Apr 02:18
Picon

[Trac] Re: how can I make sure user needs to log in before he can access trac?


On Tue, Apr 1, 2008 at 7:37 PM, yinglcs@...
<yinglcs@...> wrote:
>
>  Hi,
>
>  How can I make sure user needs to log in before he can access trac?  I
>  have tried this command, but i can see browser the code without
>  logging in.
>   $ trac-admin /path/to/projenv permission remove anonymous '*'
does that works? if so it's new to me.

everytime I have done that I removed each permission in a different command.
>
>  Thank you for any help.
>  >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users@...
To unsubscribe from this group, send email to trac-users-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Gmane