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

+3
git linux ubuntu tcp git-daemon


source to share


No one has answered this question yet

Check out similar questions:

843
How can I connect to Android with ADB over TCP?
603
Git push returning error code 403 fatal: HTTP request failed
395
Git Bash is very slow on Windows 7 x64
392
Squash the first two commits in Git?
360
Why isn't the git 'pull' request called a "push request"?
312
Change the first completion of a project with Git?
163
Installing the latest version of git in ubuntu
2
Failed to connect to cassandra hosted in my virtual machine
1
Meteor + Nginx: Websocket connection stops working after first request
0
TCP client is not receiving response for Socket.Send from VM



All Articles
Loading...
X
Show
Funny
Dev
Pics