Project

General

Profile

Redmine Crash with allocate memory error On Large SVN Repository

Added by li an over 9 years ago

**IssueBackground**

I have changed SVN from http to https, that is the background, Redmine is bitnami-redmine 2.3.2, SVN_BIN is set to 1.8.1 instead of default 1.7.5 subversion svn version in redmine configuration for I searched from redmine faq which said subversion 1.7.x may cause repository error.

Our current SVN repo. addres is https://xxxx:8443/svn/xxxx, if using http protocol that svn address is http://xxxx:81/svn/xxxx, there is no such issue I described below.*

**Issue Description**

I have been using redmine together with svn. Our projects in redmine has been link with their svn repository, I configured redmine to read it.
now I found a issue that also reported by others but no real efficient solution. That is if svn repository size is large, such as more than 3 or 4GB, especially parts of revisions are large size code upload, then redmine cannot catch the revisions of svn, which leads redmine crash everytime I click on the repository tab, it hangs for a very long time and then responds afterwards with the error message "cannot allocate memory".

**What I have done for that issue***

1.http://www.redmine.org/projects/redmine/wiki/RedmineRepositories

Important: When you first browse the repository, Redmine retrieves the description of all of the existing commits and stores them in the database.
This is done only once per repository but can take a very long time (or even time out) if your repository has hundreds of commits.

To avoid this, you can do it offline.
After having your repository declared in Redmine, run the following command:

$ ./script/rails runner "Repository.fetch_changesets" -e production

I have tried this command, the error is the same: cannot allocate memory.

2.I checked from :http://www.redmine.org/projects/redmine/wiki/FAQ#I-cant-browse-my-svn-repository-through-redmine, there is such suggestion:

If you want the commits to be retrieved periodically by Redmine in the background for all your repositories, uncheck 'Autofetch commits' setting and add a cron that runs (with appropriate environment):

rake -f /path/to/redmine/Rakefile RAILS_ENV=production redmine:fetch_changesets

I uncheck the atuofecth commits in redmine settings and worte this command as the FetchChangesets.bat, to let this script run every 5 mintues.
The large svn repo. linked in redmine catches parts of revisions, but stopped when meets with one revision 594(which is a large size code upload),then the commits after that revision cannot be catched by redmine, the error is the same"cannot allocate memory",the error message I also attached.

********************Search For Solution**********************************

I think it is a general issue of large size repository when redmine try to read it. I am not sure if it is redmine bug, My redmine is bitnami-redmine 2.3.2 under windows 2008 server. That is the whole info. and testing process of this issue.

Welcome any suggestions and help, thanks much.


Replies (1)

RE: Redmine Crash with allocate memory error On Large SVN Repository - Added by li an over 9 years ago

Requested urgent help, for it really effects much for our usage.

Thanks.

    (1-1/1)