Git daemon slow first request on ubuntu 14.04
I have multiple ubuntu 14.04.1 boxes running on vmware esxi platform.
On one server, I run git -daemon:
sudo git daemon --base-path=. --enable=receive-pack --export-all --verbose
Another server is used as a git "client". git version 1.9.1 on both machines.
In the "first" (see further details below), a git-demon request a simple git pull and push unchanged takes 5 seconds. If I then issue another immediately after its fast (~ 80ms).
What I noticed is that it is fast when there is still a TCP connection in some active state (TIME-WAIT) on the client machine. When all tcp connections to git-demon disappear completely from (ss -atp), the next git pull or push request is slow and then fast once, etc.
Although I don't have enough mailboxes to confirm this issue does not occur on ubuntu 12 with git 1.7.8
Also it doesn't happen if I use the git client on the machine where the daemon is running.
Any advice would be greatly appreciated. Charles
source to share
No one has answered this question yet
Check out similar questions: