# Lots of repositories (more than 20) make server go down

**URL:** https://www.finalbuilder.com/forums/t/lots-of-repositories-more-than-20-make-server-go-down/5921
**Category:** Bugs
**Created:** [August 5, 2014, 9:51am UTC](https://www.finalbuilder.com/forums/t/lots-of-repositories-more-than-20-make-server-go-down/5921 "2014-08-05T09:51:21Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![catenalogic](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/catenalogic/32/116_2.png) [@catenalogic](https://www.finalbuilder.com/forums/u/catenalogic)
#### Post date: [August 5, 2014, 9:51am UTC](https://www.finalbuilder.com/forums/t/lots-of-repositories-more-than-20-make-server-go-down/5921/1 "2014-08-05T09:51:21Z")

</div>

I have lots of projects (all small projects but more than 20). All repositories have the default polling frequency (60 seconds), but it totally breaks down the server. I recommend to get the changesets of at most 5 repositories at the same time. If there are more, just queue them because it’s better to have a delay than to have the server go down.

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [August 5, 2014, 10:43am UTC](https://www.finalbuilder.com/forums/t/lots-of-repositories-more-than-20-make-server-go-down/5921/2 "2014-08-05T10:43:59Z")

</div>

Agreed, will look into it. At the moment it fires off the checking asynchronously, but doesn’t limit the number of threads, will need to rework the code a fair bit to achieve this but it should be doable.

---

<div class="post-metadata">

### Author: ![catenalogic](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/catenalogic/32/116_2.png) [@catenalogic](https://www.finalbuilder.com/forums/u/catenalogic)
#### Post date: [August 5, 2014, 10:46am UTC](https://www.finalbuilder.com/forums/t/lots-of-repositories-more-than-20-make-server-go-down/5921/3 "2014-08-05T10:46:44Z")

</div>

I have set all repositories to 5 minutes now, seems much more stable. It was git for windows taking all the CPU (and more than 20 instances of that is killing). The Continua CI service wasn’t taking much CPU, it really was git.

---

<div class="post-metadata">

### Author: ![catenalogic](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/catenalogic/32/116_2.png) [@catenalogic](https://www.finalbuilder.com/forums/u/catenalogic)
#### Post date: [September 23, 2014, 1:37am UTC](https://www.finalbuilder.com/forums/t/lots-of-repositories-more-than-20-make-server-go-down/5921/4 "2014-09-23T01:37:17Z")

</div>

Is there an ETA on this feature? Every time my server has to reboot, it becomes unusable because all repositories are being checked all at once. I cannot log in or take over the machine because it is completely unresponsive (taking 100% CPU). I have added a batch file on the desktop to kill all git instances, but in order to run that I need to log in which also takes at least 10 minutes.

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [September 23, 2014, 3:15am UTC](https://www.finalbuilder.com/forums/t/lots-of-repositories-more-than-20-make-server-go-down/5921/5 "2014-09-23T03:15:57Z")

</div>

Sorry, this fell through the cracks, will discuss with the team tomorrow. I guess the the question is though, how many should we allow to run at a time.

---

<div class="post-metadata">

### Author: ![catenalogic](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/catenalogic/32/116_2.png) [@catenalogic](https://www.finalbuilder.com/forums/u/catenalogic)
#### Post date: [September 23, 2014, 3:29am UTC](https://www.finalbuilder.com/forums/t/lots-of-repositories-more-than-20-make-server-go-down/5921/6 "2014-09-23T03:29:06Z")

</div>

I think 5 is a good number. The rest should be in the queue, but with 5 it will at least keep my system accessible.

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [September 24, 2014, 11:20am UTC](https://www.finalbuilder.com/forums/t/lots-of-repositories-more-than-20-make-server-go-down/5921/7 "2014-09-24T11:20:32Z")

</div>

Hi Geert   
  
 Please try this build :   
  
 [http://downloads.finalbuilder.com/downloads/continua/1.5/ContinuaCI.Server.Setup\_x64\_1.5.0.305.exe](http://downloads.finalbuilder.com/downloads/continua/1.5/ContinuaCI.Server.Setup_x64_1.5.0.305.exe)   
 [http://downloads.finalbuilder.com/downloads/continua/1.5/ContinuaCI.Agent.Setup\_x64\_1.5.0.305.exe](http://downloads.finalbuilder.com/downloads/continua/1.5/ContinuaCI.Agent.Setup_x64_1.5.0.305.exe)   
  
 [http://downloads.finalbuilder.com/downloads/continua/1.5/ContinuaCI.Server.Setup\_1.5.0.305.exe](http://downloads.finalbuilder.com/downloads/continua/1.5/ContinuaCI.Server.Setup_1.5.0.305.exe)   
 [http://downloads.finalbuilder.com/downloads/continua/1.5/ContinuaCI.Agent.Setup\_1.5.0.305.exe](http://downloads.finalbuilder.com/downloads/continua/1.5/ContinuaCI.Agent.Setup_1.5.0.305.exe)   
  
 This build includes a new Server Property - Server.RepoMonitor.MaxCheckers - which defaults to 5. We also add a delay during startup so that the repositories do not all start checking immediately. Another thing we did was to change the setting of the last checked property to when it finished checking, this results in a more staggered checking of repos. On our main server, which has 20+ repos, I only see 2 or 3 checking at a time after this change.

---

<div class="post-metadata">

### Author: ![catenalogic](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/catenalogic/32/116_2.png) [@catenalogic](https://www.finalbuilder.com/forums/u/catenalogic)
#### Post date: [September 24, 2014, 11:55am UTC](https://www.finalbuilder.com/forums/t/lots-of-repositories-more-than-20-make-server-go-down/5921/8 "2014-09-24T11:55:15Z")

</div>

This is awesome. I just reset all the checks from 5 minutes to 60 seconds on all my repositories. So far so good, it even worked while restarting the server (normally it would be unresponsive from the beginning keeping me out of the loop). Great work, thanks!

---

<div class="post-metadata">

### Author: ![catenalogic](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/catenalogic/32/116_2.png) [@catenalogic](https://www.finalbuilder.com/forums/u/catenalogic)
#### Post date: [September 24, 2014, 11:59am UTC](https://www.finalbuilder.com/forums/t/lots-of-repositories-more-than-20-make-server-go-down/5921/9 "2014-09-24T11:59:20Z")

</div>

fyi: just counted, I have 39 projects. Is there a way to get such statistics without counting manually?
