Microsoft MVP성태의 닷넷 이야기
오류 유형: 267. Visual Studio - CodeLens 사용 시 CPU 100% 현상 [링크 복사], [링크+제목 복사],
조회: 27491
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일
 
(연관된 글이 1개 있습니다.)

Visual Studio - CodeLens 사용 시 CPU 100% 현상

정확히 언제부터인지는 모르겠지만... 사용하다 보니, 이상하게 C# 코드를 저장할 때마다 CPU 사용량이 과다하게 몇 초 동안 지속적으로 사용되는 현상이 발생했습니다.

Process Explorer로 확인해 보면, Visual Studio의 자식 프로세스로 특이하게 DLL로 된 프로세스를 하나 띄운 것이 CPU를 잡아 먹고 있었습니다.

vs_alm_high_cpu_1.png

C:\Windows\Microsoft.NET\assembly\GAC_32\Microsoft.Alm.Shared.Remoting.RemoteContainer\v4.0_12.0.0.0__b03f5f7f11d50a3a\Microsoft.Alm.Shared.Remoting.RemoteContainer.dll


화면에서 보는 것처럼 8 (논리) 코어에서 80% 사용량을 보인 다는 것은 다중 스레드로 바쁘게 뭔가를 열심히 하고 있다는 것인데요. 다행히 connect 사이트에 이미 보고된 문제이고 답변도 있습니다.

Microsoft.Alm.Shared.Remoting.RemoteContainer -> High CPU
; https://connect.microsoft.com/VisualStudio/feedback/details/807273/microsoft-alm-shared-remoting-remotecontainer-high-cpu

즉, "CodeLens" 기능을 아래와 같이 꺼 주면 CPU가 다시 잠잠해집니다.

vs_alm_high_cpu_2.png

"Microsoft.Alm.Shared.Remoting.RemoteContainer -> High CPU" 덧글에 보면 이런 내용도 있습니다.

An alternative to the other workarounds (turning of code lens) is to disable the source control integration: Tools > Options > Source Control > Plug-In Selection > None


CodeLens 기능을 켜둔 상태에서 "Source Control"을 해제하는 방법도 있다는 것인데요. 따라서 CPU 100% 현상은 다음의 3가지 조건이 맞았을 때 발생하는 것으로 보입니다.

  1. CodeLens를 사용하고,
  2. 규모가 큰 프로젝트의 경우이고,
  3. TFS에 참여하고 있는 프로젝트

그나저나,,, 이제 가까스로 CodeLens 기능에 익숙해지고 있다가 막상 CodeLens를 끄고 나니 코딩 시 뭔가 허전함이 느껴집니다. ^^




[이 글에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]

[연관 글]






[최초 등록일: ]
[최종 수정일: 1/8/2015]

Creative Commons License
이 저작물은 크리에이티브 커먼즈 코리아 저작자표시-비영리-변경금지 2.0 대한민국 라이센스에 따라 이용하실 수 있습니다.
by SeongTae Jeong, mailto:techsharer at outlook.com

비밀번호

댓글 작성자
 




... 61  62  63  64  65  66  67  68  69  70  [71]  72  73  74  75  ...
NoWriterDateCnt.TitleFile(s)
12161정성태2/26/202017690오류 유형: 597. manifest - The value "x64" of attribute "processorArchitecture" in element "assemblyIdentity" is invalid.
12160정성태2/26/202018189개발 환경 구성: 469. Reg-free COM 개체 사용을 위한 manifest 파일 생성 도구 - COMRegFreeManifest
12159정성태2/26/202015242오류 유형: 596. Visual Studio - The project needs to include ATL support
12158정성태2/25/202017812디버깅 기술: 165. C# - Marshal.GetIUnknownForObject/GetIDispatchForObject 사용 시 메모리 누수(Memory Leak) 발생파일 다운로드1
12157정성태2/25/202017888디버깅 기술: 164. C# - Marshal.GetNativeVariantForObject 사용 시 메모리 누수(Memory Leak) 발생 및 해결 방법파일 다운로드1
12156정성태2/25/202016436오류 유형: 595. LINK : warning LNK4098: defaultlib 'nafxcw.lib' conflicts with use of other libs; use /NODEFAULTLIB:library
12155정성태2/25/202015891오류 유형: 594. Warning NU1701 - This package may not be fully compatible with your project
12154정성태2/25/202015247오류 유형: 593. warning LNK4070: /OUT:... directive in .EXP differs from output filename
12153정성태2/23/202019371.NET Framework: 898. Trampoline을 이용한 후킹의 한계파일 다운로드1
12152정성태2/23/202018469.NET Framework: 897. 실행 시에 메서드 가로채기 - CLR Injection: Runtime Method Replacer 개선 - 세 번째 이야기(Trampoline 후킹)파일 다운로드1
12151정성태2/22/202019223.NET Framework: 896. C# - Win32 API를 Trampoline 기법을 이용해 C# 메서드로 가로채는 방법 - 두 번째 이야기 (원본 함수 호출)파일 다운로드1
12150정성태2/21/202019483.NET Framework: 895. C# - Win32 API를 Trampoline 기법을 이용해 C# 메서드로 가로채는 방법 [1]파일 다운로드1
12149정성태2/20/202018302.NET Framework: 894. eBEST C# XingAPI 래퍼 - 연속 조회 처리 방법 [1]
12148정성태2/19/202020717디버깅 기술: 163. x64 환경에서 구현하는 다양한 Trampoline 기법 [1]
12147정성태2/19/202018482디버깅 기술: 162. x86/x64의 기계어 코드 최대 길이
12146정성태2/18/202019252.NET Framework: 893. eBEST C# XingAPI 래퍼 - 로그인 처리파일 다운로드1
12145정성태2/18/202019074.NET Framework: 892. eBEST C# XingAPI 래퍼 - Sqlite 지원 추가파일 다운로드1
12144정성태2/13/202019250.NET Framework: 891. 실행 시에 메서드 가로채기 - CLR Injection: Runtime Method Replacer 개선 - 두 번째 이야기파일 다운로드1
12143정성태2/13/202015892.NET Framework: 890. 상황별 GetFunctionPointer 반환값 정리 - x64파일 다운로드1
12142정성태2/12/202018273.NET Framework: 889. C# 코드로 접근하는 MethodDesc, MethodTable파일 다운로드1
12141정성태2/10/202017268.NET Framework: 888. C# - ASP.NET Core 웹 응용 프로그램의 출력 가로채기 [2]파일 다운로드1
12140정성태2/10/202017765.NET Framework: 887. C# - ASP.NET 웹 응용 프로그램의 출력 가로채기파일 다운로드1
12139정성태2/9/202019044.NET Framework: 886. C# - Console 응용 프로그램에서 UI 스레드 구현 방법
12138정성태2/9/202023011.NET Framework: 885. C# - 닷넷 응용 프로그램에서 SQLite 사용 [6]파일 다운로드1
12137정성태2/9/202016317오류 유형: 592. [AhnLab] 경고 - 디버거 실행을 탐지했습니다.
12136정성태2/6/202017262Windows: 168. Windows + S(또는 Q)로 뜨는 작업 표시줄의 검색 바가 동작하지 않는 경우
... 61  62  63  64  65  66  67  68  69  70  [71]  72  73  74  75  ...