programing

Visual Studio 2017은 빌드 및 디버깅 중에 너무 느립니다.

nasanasas 2020. 9. 24. 07:54
반응형

Visual Studio 2017은 빌드 및 디버깅 중에 너무 느립니다.


다음 사양의 PC에 Visual Studio 2017방금 설치했습니다 .

Intel Xeon E5-1600 v3 @ 3.50GHz 프로세서, 16GB RAM 및 Windows 10 Pro 64 비트 운영 체제 .

PC 성능은 거의 완벽하지만 특히 빌드 및 디버그 프로세스 중에 Visual Studio 2017 에서 속도 저하 문제가 발생 합니다. 이 외에도 때때로 "응답하지 않음" 메시지 후에 다시 시작해야 합니다.

Visual Studio 2017 의이 문제에 대한 안정적인 솔루션이 있습니까? ..


Visual Studio 2017에서 더 나은 성능을 얻기 위해 아래와 같이 몇 가지 성능 조정을 적용 할 수 있습니다.

  1. 도구옵션소스 제어 에서 현재 소스 제어…없음 으로 설정 합니다.

  2. 도구옵션환경동기화 된 설정 (일부 버전의 경우 : 도구옵션환경계정 ) 에서 ...에서 동기화 된 설정 옵션을 선택 취소 합니다 .

  3. CodeLens 비활성화 (선택 사항) : 도구옵션텍스트 편집기모든 언어 에서 CodeLens 활성화 옵션을 선택 취소합니다.

  4. 사용 안 함 진단 도구 (선택 사항) : 선택을 취소 디버깅하는 동안 진단 도구를 사용 아래 옵션 도구옵션디버깅일반

  5. 다음 폴더의 콘텐츠를 정리하고 ( 이 폴더를 삭제하지 말고 해당 콘텐츠 만 삭제 ) Visual Studio를 다시 시작합니다.

    WebSiteCache 폴더 의 콘텐츠를 정리 합니다 (
    C : \ Users \ % USERNAME % \ AppData \ Local \ Microsoft \ WebSiteCache에서 찾을 수 있음 ).

    Temporary ASP.NET Files 폴더 의 콘텐츠를 정리 합니다 (
    C : \ Users \ % USERNAME % \ AppData \ Local \ Temp \ Temporary ASP.NET Files에서 찾을 수 있음 ).

참고 : 당신이있는 경우 하드웨어 가속이 가능하거나 스튜디오 2015 스튜디오 2017 비주얼 또는 Visual 마이크로 소프트의 기본 비주얼 경험 설정을 사용하는 경우, 당신은 간헐적 인 성능 문제, 제품의 충돌, 또는 렌더링 문제가 발생할 수 있습니다. 이러한 문제를 해결하려면 도구옵션환경일반 에서 다음 설정을 적용하십시오.

여기에 이미지 설명 입력

자세한 내용 은 Visual Studio 2015 및 Visual Studio 2013에서 성능 문제, 제품 충돌 또는 렌더링 문제가 발생 함을 참조 하세요.

문제가 디버깅과 관련된 경우 Visual Studio 디버깅 / 매우 느리게로드 에 대한 해결 방법을 시도하십시오 .

이게 도움이 되길 바란다...


우선적 인 해결책이있을 수 있습니다 ..

1) Disable Diagnostic Tools

여기에 이미지 설명 입력

2) Disable rick client visual experience

여기에 이미지 설명 입력

3) Disable all sync setting.

여기에 이미지 설명 입력

also make sure you removed the cache by using run -> %temp%. good luck.


My problem was with Lightweight Solution Load. Once I disabled that everything went back to normal.


I got this link to Manage Visual Studio Performance in my VS 2017

Note: You can also open this window from: Help -> Manage Visual Studio Performance

According to the screenshot below, Developer Analytics Tools adds 5 sec (on avg) to Solution Load time. I have disabled it.

여기에 이미지 설명 입력


Download procmon and run to check the background activities done by msbuild or visual studio. Visual studio can be extremely slow or almost unusable in case its writing log using fuslogvw.

Steps to stop fuslogvw log writer.

1) Window+R, type RegEdit 2) GoTO path HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Fusion 3) Set hexadecimal value of Force Log to 0.

Visual Studio will start performing normal.


I am running VS 2017 on a system that has 128GB of RAM and 4 Quad Core Xeon Processors with SSD. I am of course using Windows 10 Pro for Workstations in order to support my quad CPU build.

What really helped me to decrease my build time to less than 2 seconds was this simple trick:

Setting the Host computer's setting to optimise on "Background Services" using Windows' properties, Advanced System Settings, Advanced, Advanced tab.

Also, considering that I have huge amount of RAM and I have never seen even a quarter of it being used was to disable Page file. (Windows will warn about the consequences)

Also, it is worth adding VS installation and project folder to a list of exceptions in the anti-virus settings (In my case, Windows Defender)


I have tried all the above solutions, and followed many of the relevant links. None of them worked.

After pulling off all my hair, and filling up another cup of coffee, I decided to update Visual Studio 2017. Boom, everything is back to normal now (except for my hair and a caffeinated brain).

So, if you ever encounter the same issue, I suggest you to check your Visual Studio 2017 update first. If there is any available update, update!


I had a similar problem with the VS Community version 2017 and I disabled the "Enable Diagnostic Tools while debugging", only it, nothing more...!!!

Tools> Options> Debuggin> General> Enable Diagnostic Tools while debugging


perfwatson2.exe ”프로세스는 빌드 VS 2017 동안 CPU / 메모리 / 디스크를 가장 많이 사용 하는 것을 확인했습니다 . perfwatson2 프로세스는 더 많은 시간 (약 2 초 이상)이 걸리는 시스템 작업 데이터를 수집하여 Microsoft로 보냅니다. Microsoft 팀은 데이터를 분석하고 동일한 솔루션을 찾을 수 있습니다.

아래 단계는 perfwatson2 서비스 / 프로세스를 중지하는 데 도움이됩니다.

VS2017을 열고 도움말 => 피드백 보내기 => 설정으로 이동하여 아니요, 참여하고 싶지 않습니다. 옵션을 설정합니다.

여기에 이미지 설명 입력


VS2017이 로컬 코드 저장소에 생성 한 .vs 폴더를 삭제 해보십시오. 그런 다음 솔루션을 다시 엽니 다.

참고 URL : https://stackoverflow.com/questions/42877071/visual-studio-2017-is-too-slow-during-building-and-debugging

반응형