Changeset view: a memory consuming operation

5 views
Skip to first unread message

VitalieL

unread,
Jul 14, 2007, 3:10:16 AM7/14/07
to Trac Users
Hi,

we host at assembla.com multiple trac instances and after we moved
from Linux to FreeBSD 6.2/trac 0.10.4 we encountered a lot of problems
with trac server, at the beginning it has only 2Gb of RAM and it
consumed all memory and swap space in some situations, so we moved
other applications from server and left there only trac and svn. The
problem did not disappear, so we ordered another 2gb of RAM and
enabled swap space monitoring, yesterday i received a >50% swap usage
alert, so i looked i apache status to see what requests is processed.
I found that process that served /popencyclopedie/changeset/87/log was
consumed about 700Mb of RAM.

I looked at above trac instance and i saw that they have big files in
log directory:
http://tools.assembla.com/popencyclopedie/browser/log and when trac
generate diff content this problem happens.

Is there a way to avoid such situations in the future or to limit diff
size for trac?
Maybe trac should not include files in diff that are greater than 1Mb?

Best regards,
Vitalie

Noah Kantrowitz

unread,
Jul 14, 2007, 3:20:37 AM7/14/07
to trac-...@googlegroups.com
You mean like max_diff_bytes?
http://trac.edgewall.org/wiki/TracIni#changeset-section

--Noah

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

signature.asc

VitalieL

unread,
Jul 14, 2007, 4:43:27 AM7/14/07
to Trac Users
Thanks Noah for the answer.

I added below options to global trac.ini (/usr/local/share/trac/conf/
trac.ini) file, restarted apache, but they don't work, when i access
the url, the same problem appear.

[changeset]
max_diff_bytes = 2097152 # 2Mb
max_diff_files = 1000

Also i tried to add these options to local trac.ini of the project, no
effect.

any other suggestions?

Reply all
Reply to author
Forward
0 new messages