Very slow on Windows (OD-92)
Ranjan opened 6 years ago

First an awesome project. Just downloaded it for windows 10 with git installed and got curl.exe as well. Creating a project and it's git repository took a long time, also cloning/commit/push took long time specially for signing with username and password

Wanted to know why OneDev git operations are so slow on windows.

I just tried it out and no such lag for git operations occurs on linux.

  • Robin Shen commented 6 years ago

    Git can be slow on Windows for large repositories. What is the repository size?

  • Ranjan commented 6 years ago

    Thanks for response.

    It was an empty repo, was just trying to create, clone and push a single file to the repo. The git for windows is installed and is available via cmd, curl.exe was downloaded and pointed to at the installation time.

    When I first created the project it took one minute to create the repo on windows.

    Also for example when I do got push it takes long time to prompt for username, after that it takes a long time to prompt for password, then the actual push is fast

  • Robin Shen commented 6 years ago

    It runs fast at my side. Please follow below step to investigate:

    1. Make sure that no any git http proxy is enabled
    2. Run git from command line directly to make sure it is fast for operations such as initializing/cloning repository
    3. Run OneDev from the same command prompt in console mode (bin/server.bat console)
    4. Test to see if OneDev is still slow. If yes, press Ctrl-Break to get the thread dump while it is hanging. The thread dump will be printed into "logs/console.log". You may attach the file here for my diagnostics.
  • Ranjan commented 6 years ago

    I just upgraded Git for Windows to Git-2.26.0-64-bit from Git-2.22.0-64-bit and the problem has gone now.

    Thanks

  • Robin Shen changed state to 'Closed' 6 years ago
    Previous Value Current Value
    Open
    Closed
  • Robin Shen commented 6 years ago

    Thanks for the info. Closing now.

issue 1/1
Type
Bug
Priority
Normal
Assignee
Affected Versions
Not Found
Issue Votes (0)
Watchers (2)
Reference
OD-92
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover