How to Improve Trac Performance

I noticed that my specific instance of Trac is not working fast and has large delays. This happens at the very beginning of the project, so there are not many in Trac (except for plugins and code loaded into SVN).

Installation Information: This is through a SELinux system hosted by WebFaction. This is Apache, and connections are SSL. The .htpasswd file is currently used for access control.

Are there any recommendations for improving Trac performance?

+3
source share
4 answers

It's hard to say without knowing more about your setup, but one simple gain is to make sure that Trac works in something like mod_pythonthat saves Python runtime in memory. Otherwise, each HTTP request will cause Python to start, import all the modules, and finally process the request. Using mod_python(or FastCGI, depending on what you prefer) will eliminate this download and skip straight to the good.

In addition, as your Trac database grows and the number of users using this site grows, you are likely to outgrow the default SQLite database. At this point, you should consider moving the database to PostgreSQL or MySQL, because they will be able to process concurrent queries much faster.

+5
source

FastCGI. https , http - , .

+3

,

select disctinct name from wiki

5 (, - - ( script, )), 2*t*n, t - ( > 5s, ), n - , . , , ( ) 5s-, . trac, , . 30 ( , , 30- 6-7 ).

, , . Trac.

+2
source

Support for chrome files statically and the expires header can also help. See End of this page .

+1
source

Source: https://habr.com/ru/post/1698423/


All Articles