When trying to display the diff of a (long) file in a commit, I get "The diff for this file is too large to render." instead of the diff.
- What is the upper limit of the file size that Stash is still willing to display?
- Is there a way to increase this limit?
Stash applies two limits to diff rendering to limit memory usage:
# Maximum length for any line returned from a given file when viewing source. This value truncates long lines. There is no mechanism for retrieving the truncated part short of downloading the entire file.
# Maximum number of segment lines (of any type, total) which may be returned for a single diff. Unlike other page limits, this is a hard limit; subsequent pages cannot be requested when a diff exceeds this size.
It depends quite much on how many users are doing what exactly. If large diffs are relatively rare compared to all the other things the server does, it will not have a significant performance impact. Try for an hour or a day and keep track of the performance indicators of the server.
(I did increase this by a factor of 10 to to 50k. We have so many users, and so few huge diffs that it did not really make a difference in the performance.)
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
I am gathering information about resources available for Atlassian product knowledge transferring for a presentation in our local Atlassian User Group. I want to group them in four categories From ...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs