Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

git credential-manager is very slow #786

Closed
patryksuchowierski opened this issue Oct 10, 2018 · 7 comments
Closed

git credential-manager is very slow #786

patryksuchowierski opened this issue Oct 10, 2018 · 7 comments

Comments

@patryksuchowierski
Copy link

I'm experiencing delays when performing git operations. Any idea what is going on? I spent a lot of time on this, played with antivirus, firewall and so on - with no success.

19:19:41.362598 http.c:724              == Info: Connection #0 to host xxxx.visualstudio.com left intact
19:19:41.363597 run-command.c:637       trace: run_command: 'git credential-manager get'
19:20:08.287401 exec-cmd.c:236          trace: resolved executable dir: C:/Program Files/Git/mingw64/bin
19:21:01.117519 http.c:724              == Info: Connection #1 to host xxxx.visualstudio.com left intact
19:21:01.118506 run-command.c:637       trace: run_command: 'git credential-manager store'
19:22:12.622660 exec-cmd.c:236          trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
@jeschu1
Copy link
Member

jeschu1 commented Oct 10, 2018

@patryksuchowierski can you confirm what version of GCM you are on?

@patryksuchowierski
Copy link
Author

@patryksuchowierski can you confirm what version of GCM you are on?

1.18.1

@PaulDotNet
Copy link

Try nslookup xxxx.visualstudio.com command to see if you have a mix of IPv4 and IPv6 addresses.

If you do then you could have a usual case of bad routing.

@jeschu1
Copy link
Member

jeschu1 commented Oct 11, 2018

@patryksuchowierski please try

Run fiddler and

  1. set GCM_TRACE=1
  2. rerun your command
    Then let us know where the slowdown appears to be. The fiddler trace will show you the network calls and capture the time spent there. If you don't see the full trace in fiddler you may need to run the command with (-c http.sslyVerify=false), but be aware what that flag does before running.

@jeschu1
Copy link
Member

jeschu1 commented Oct 12, 2018

@patryksuchowierski please try the pre-release https://github.com/Microsoft/Git-Credential-Manager-for-Windows/releases/tag/v1.18.2 and let me know if it improves performance.

@patryksuchowierski
Copy link
Author

@jeschu1 The problem does not seem to be occurring anymore (1.18.1). I have performed entire PC scan with my AV (McAffe) and then the delay was gone. Perhaps, it was the the cause? Maybe GCMW binaries were marked 'unscanned' by AV and each time GIT called them, it caused delays? Just guessing...

@jeschu1
Copy link
Member

jeschu1 commented Oct 15, 2018

@patryksuchowierski thank you for the response! Yes, virus scanners will definitely cause delays. We have seen that before.

Note there was a speed regression in the last few versions of GCM, but only for non visualstudio.com users. I released 1.18.2 to address that on Friday,

@jeschu1 jeschu1 closed this as completed Oct 15, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants