Edgewall Software
Modify

Opened 9 years ago

Closed 9 years ago

#11883 closed defect (duplicate)

Viewing very large changesets runs forever

Reported by: doug.winter@… Owned by:
Priority: normal Milestone:
Component: plugin/git Version: 1.0.1
Severity: normal Keywords:
Cc: Ryan J Ollos Branch:
Release Notes:
API Changes:
Internal Changes:

Description

We have a changeset in a git repository that is extremely large. When viewed on github, github just refuses to display it.

Trying to view the changeset in Trac causes it to spin and eat CPU for a very long time. I gave up after 10 minutes.

Trac should probably refuse to display changesets of larger than a specified size.

I am using trac 1.0.1 from ubuntu trusty.

Attachments (0)

Change History (6)

comment:1 by Ryan J Ollos, 9 years ago

What are your settings for [changeset] max_diff_files and max_diff_bytes?

comment:2 by anonymous, 9 years ago

[changeset]
max_diff_bytes = 10000000
max_diff_files = 0

Which looks like the default values.

comment:3 by Ryan J Ollos, 9 years ago

Cc: Ryan J Ollos added

Since Trac has the feature you are requesting, the thing to do is change the settings to something more appropriate for your installation. Could you try reducing the value of max_diff_bytes in 1 MB increments and let us know what value prevents Trac from attempting to render the changeset? That will give us a good idea of the size of the changeset that is causing you trouble, and will allow you to set a more appropriate limit for your installation.

Perhaps our default value of 10e6 is too large for a typical Trac installation. The default value of 0 for number of files to display puts no limit on the number of files displayed: TracIni#changeset-section.

If your changeset contains only one file then max_diff_bytes will be ignored, see [2968]. How many files does your changeset include?

Last edited 9 years ago by Ryan J Ollos (previous) (diff)

comment:4 by Jun Omae, 9 years ago

I think that is a duplicate of #10267, not a plugin/git issue.

comment:5 by anonymous, 9 years ago

I've turned max_diff_bytes down to 1MB - anything more than this really murders the server. At 1MB it seems to all work ok. I have left max_diff_files at 0 for now.

I didn't realise these settings were there, and it might be worth considering reducing the default.

Thanks very much for your help.

comment:6 by Ryan J Ollos, 9 years ago

Resolution: duplicate
Status: newclosed

I guess we can close this as a duplicate of #10267 then. The workaround of reducing max_diff_bytes would not seem to cover every scenario.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.