プロジェクト

全般

プロフィール

Vote #66481

完了

Git repository performance fall on parsing new commits after 0.9.1 update

Admin Redmine さんがほぼ2年前に追加. ほぼ2年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
SCM_3
対象バージョン:
開始日:
2010/02/02
期日:
進捗率:

0%

予定工数:
category_id:
3
version_id:
17
issue_org_id:
4716
author_id:
11790
assigned_to_id:
0
comments:
6
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
15
ステータス-->[Closed]

説明

I recently updated Redmine from 0.8.7 to 0.9.1.
Everything works ok, just the git repository seems really slow (when processing new commits).
There are ~2600 commits and 7 branches in the repo.
I've been using Git with Redmine already in 0.8.7, there processing all commits took long (fair enough), but processing one new commit was just around 10 seconds.
Here pulling one new commit (to one branch) and then opening the Repository page takes really long (when the repository was loaded previously), even some minutes.
May it be that when checking for new commits Redmine goes too deep in the log (that can be painful for big repositories)?

I use the following software:
git 1.5.6.3
Mysql 5.0.67
Ruby 1.8.7.72
Rails 2.3.5
Using redmine 0.9-stable, "Merged r3351 from trunk." commit on top.


journals

Parsing a new commit (maybe it was 4 new commits this time, not one) takes around 1700 seconds (28 minutes). For that time redmine hardly answers also for other requests. After that time is gone, it's ok again (until new commits are uploaded and repo page is opened...).
--------------------------------------------------------------------------------
Fix committed in r3394.
Feedback would be appreciated before merging it into 0.9-stable.
--------------------------------------------------------------------------------
I put the fix commit on top of 0.9-stable (r3392 currently) and updated redmine.
Uploaded some new commits to the repo, updated two branches, here is part of the git info:

Counting objects: 124, done.
Compressing objects: 100% (64/64), done.
Writing objects: 100% (70/70), 19.34 KiB, done.
Total 70 (delta 47), reused 1 (delta 0)

I tried opening the repository page, and I got Internal server error once (after loading really long - and the server's load became high).
After some time, I refreshed the repository page again, it was loading long, but finally I got the repo page.
In the log I find:
"Completed in 1030714ms (View: 366, DB: 45162)", so 1030s (17 minutes).
--------------------------------------------------------------------------------
Sorry, it was my failure, somehow I was testing the old version. I'll get back to you once I've tested the new one :)
--------------------------------------------------------------------------------
I uploaded a new commit, and parsing the repo lasted for 20 seconds. That's nice comparing to 17 minutes :)
Thanks much for fixing this bug so fast!
--------------------------------------------------------------------------------
Thanks for the feedback. The fix was merged in 0.9.3.
--------------------------------------------------------------------------------


related_issues

relates,Closed,8857,Git: Too long in fetching repositories after upgrade from 1.1 or new branch at first time
relates,Closed,1406,Browse through Git branches

Admin Redmine さんがほぼ2年前に更新

  • カテゴリSCM_3 にセット
  • 対象バージョン0.9.3_17 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0