Project

General

Profile

Actions

Defect #13744

closed

Redmine hangs up with large repo

Added by Antisthens Antisthens over 11 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
High
Assignee:
-
Category:
SCM
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

Hi
I have redmine install on my laptop(details in ENV information).
two git repos are created.
one is small, clone from : https://github.com/avikivity/kvm-unit-tests.git, redmine works well on this repo.
another one is the linux kernel source. clone from : https://github.com/torvalds/linux.git

everytime I click the kernel repo. redmine hangs up, can not stop redmine by Ctrl-C even.

I noticed process ruby and git 'eat' lot of cpu:

top - 14:10:14 up 55 min,  7 users,  load average: 0.45, 0.35, 0.52
Tasks: 208 total,   2 running, 206 sleeping,   0 stopped,   0 zombie
%Cpu(s): 33.7 us,  2.1 sy,  0.0 ni, 63.6 id,  0.0 wa,  0.3 hi,  0.3 si,  0.0 st
KiB Mem:   7924224 total,  3613880 used,  4310344 free,   136260 buffers
KiB Swap: 10158076 total,        0 used, 10158076 free,  1819648 cached

  PID USER      PR  NI  VIRT  RES  SHR S  %CPU %MEM    TIME+  COMMAND                                                                                         
 4925 antisthe  20   0 1004m 329m 6508 S  99.6  4.3   0:24.28 ruby                                                                                            
 5327 antisthe  20   0 1328m 680m 354m S  33.2  8.8   0:08.82 git                                                                                             

[antisthens@ ~]$ ps -aef | egrep "ruby|git" 
1000      4925  4924 11 13:57 pts/1    00:01:34 ruby /home/antisthens/Workspace/redmine-2.2.3/script/rails server webrick -e production
1000      5327  4925 30 14:09 pts/1    00:00:27 git --git-dir /home/antisthens/Workspace/redmine-2.2.3/repositories/git/linux/.git -c core.quotepath=false -c log.decorate=no log --no-color --encoding=UTF-8 --raw --date=iso --pretty=fuller --parents --stdin --reverse

after about 3 minutes. the git process is gone,but redmine still response-less:

top - 14:16:00 up  1:01,  7 users,  load average: 1.18, 0.91, 0.73
Tasks: 207 total,   2 running, 205 sleeping,   0 stopped,   0 zombie
%Cpu(s): 26.4 us,  0.7 sy,  0.0 ni, 72.2 id,  0.4 wa,  0.2 hi,  0.2 si,  0.0 st
KiB Mem:   7924224 total,  4071796 used,  3852428 free,   137080 buffers
KiB Swap: 10158076 total,        0 used, 10158076 free,  1818012 cached

  PID USER      PR  NI  VIRT  RES  SHR S  %CPU %MEM    TIME+  COMMAND                                                                                         
 4925 antisthe  20   0 1714m 1.0g 6508 S  96.3 13.6   6:02.62 ruby                                                                                            
 1811 mysql     20   0  598m  52m 5116 S   3.3  0.7   0:26.40 mysqld                                                                                          
 2101 antisthe  20   0 1997m 201m  35m S   3.0  2.6   2:40.40 gnome-shell                                                                                     
 2665 antisthe  20   0 1620m 318m  43m S   2.7  4.1   4:44.72 firefox                                                                                         

[antisthens@ ~]$ ps -aef | egrep "git|ruby" 
1000      4925  4924 30 13:57 pts/1    00:05:10 ruby /home/antisthens/Workspace/redmine-2.2.3/script/rails server webrick -e production

by google, seems there is performance issue in git itself,(in my case, the git command take about 3 minutes). wonder if redmine can back to normal status after the git command without restart?

Tons of thanks.

========== ENV information ============
HW Information:
Dell latitude E6420

OS Information:
Fedora 18 x86_64

redmine Information:
Environment:
  Redmine version                          2.2.3.stable
  Ruby version                             1.9.3 (x86_64-linux)
  Rails version                            3.2.12
  Environment                              production
  Database adapter                         Mysql2
Redmine plugins:
  no plugin installed

git Information
git-1.8.1.4-2.fc18.x86_64

Related issues

Related to Redmine - Defect #2824: MySQL Deadlock Error when showing a big repositoryNew2009-02-24

Actions
Actions

Also available in: Atom PDF