|
1 | 1 | ---
|
2 |
| -title: "Automatic feature suspension | Microsoft Docs" |
3 |
| -ms.custom: "" |
| 2 | +title: "Automatic feature suspension in Visual Studio | Microsoft Docs" |
4 | 3 | ms.date: "11/04/2016"
|
5 |
| -ms.reviewer: "" |
6 |
| -ms.suite: "" |
7 |
| -ms.tgt_pltfrm: "" |
8 | 4 | ms.topic: "article"
|
9 |
| -helpviewer_keywords: |
| 5 | +helpviewer_keywords: |
10 | 6 | - "full solution analysis"
|
11 | 7 | - "performance"
|
12 | 8 | - "low-memory"
|
13 | 9 | ms.assetid: 572c15aa-1fd0-468c-b6be-9fa50e170914
|
14 |
| -caps.latest.revision: 6 |
15 | 10 | author: "gewarren"
|
16 | 11 | ms.author: "gewarren"
|
17 | 12 | manager: ghogen
|
18 |
| -ms.technology: |
19 |
| - - "vs-ide-code-analysis" |
20 |
| -ms.workload: |
| 13 | +ms.technology: vs-ide-code-analysis |
| 14 | +ms.workload: |
21 | 15 | - "multiple"
|
22 | 16 | ---
|
23 | 17 | # Automatic feature suspension
|
24 |
| -If your available system memory falls to 200MB or less, Visual Studio displays the following message in the code editor. |
25 |
| - |
26 |
| -  |
27 |
| - |
28 |
| - When Visual Studio detects a low memory condition, it automatically suspends certain advanced features to help it remain stable. When this advanced feature suspension warning appears, Visual Studio will continue to work as before, but its performance will be slightly degraded. |
29 |
| - |
30 |
| - In a low memory condition, the following occurs: |
31 |
| - |
32 |
| -- Full solution analysis for Visual C# and Visual Basic is disabled. |
33 |
| - |
34 |
| -- [Garbage Collection](/dotnet/standard/garbage-collection/index) (GC) low-latency mode for Visual C# and Visual Basic are disabled. |
35 |
| - |
36 |
| -- Visual Studio caches are flushed. |
37 |
| - |
38 |
| -## Improve Visual Studio performance |
39 |
| - For tips and tricks on how to improve Visual Studio performance when dealing with large solutions or low-memory conditions, see [Performance considerations for large solutions](https://github.com/dotnet/roslyn/wiki/Performance-considerations-for-large-solutions). |
40 |
| - |
41 |
| -## Full solution analysis suspended |
42 |
| - By default, full solution analysis is enabled for Visual Basic and disabled for Visual C#. However, in a low memory condition, full solution analysis is automatically disabled for both Visual Basic and Visual C#, regardless of their settings in the Options dialog box. However, you can re-enable full solution analysis by choosing the **Re-enable** button in the info bar when it appears, by selecting the **Enable full solution analysis** check box in the Options dialog, or by restarting Visual Studio. The Options dialog box always shows the current full solution analysis settings. For more information, see [How to: Enable and Disable Full Solution Analysis](../code-quality/how-to-enable-and-disable-full-solution-analysis-for-managed-code.md). |
43 |
| - |
44 |
| -## GC low-latency disabled |
45 |
| - To re-enable GC low-latency mode, restart Visual Studio. By default, Visual Studio enables GC low-latency mode whenever you are typing to ensure that your typing doesn't block any GC operations. However, if a low memory condition causes Visual Studio to display the automatic suspension warning, GC low-latency mode is disabled for that session. Restarting Visual Studio will re-enable the default GC behavior. For more information, see [GCLatencyMode Enumeration](http://msdn.microsoft.com/Library/057757a5-cd62-4d13-8a40-370eb7f47c87). |
46 |
| - |
47 |
| -## Visual Studio caches flushed |
48 |
| - All Visual Studio caches are immediately emptied, but will begin to repopulate if you continue your current development session or restart Visual Studio. The caches flushed include caches for the following features. |
49 |
| - |
50 |
| -- Find all references |
51 |
| - |
52 |
| -- Navigate To |
53 |
| - |
54 |
| -- Add Using |
55 |
| - |
56 |
| - In addition, caches used for internal Visual Studio operations are also cleared. |
57 |
| - |
| 18 | + |
| 19 | +If your available system memory falls to 200 MB or less, Visual Studio displays the following message in the code editor: |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | +When Visual Studio detects a low memory condition, it automatically suspends certain advanced features to help it remain stable. Visual Studio continues to work as before, but its performance is degraded. |
| 24 | + |
| 25 | +In a low memory condition, the following actions take place: |
| 26 | + |
| 27 | +- Full solution analysis for Visual C# and Visual Basic is disabled. |
| 28 | + |
| 29 | +- [Garbage Collection](/dotnet/standard/garbage-collection/index) (GC) low-latency mode for Visual C# and Visual Basic is disabled. |
| 30 | + |
| 31 | +- Visual Studio caches are flushed. |
| 32 | + |
| 33 | +## Improve Visual Studio performance |
| 34 | + |
| 35 | +For tips and tricks on how to improve Visual Studio performance when dealing with large solutions or low-memory conditions, see [Performance considerations for large solutions](https://github.com/dotnet/roslyn/wiki/Performance-considerations-for-large-solutions). |
| 36 | + |
| 37 | +## Full solution analysis suspended |
| 38 | + |
| 39 | +By default, full solution analysis is enabled for Visual Basic and disabled for Visual C#. However, in a low memory condition, full solution analysis is automatically disabled for both Visual Basic and Visual C#, regardless of their settings in the Options dialog box. However, you can re-enable full solution analysis by choosing the **Re-enable** button in the info bar when it appears, by selecting the **Enable full solution analysis** check box in the Options dialog, or by restarting Visual Studio. The Options dialog box always shows the current full solution analysis settings. For more information, see [How to: Enable and Disable Full Solution Analysis](../code-quality/how-to-enable-and-disable-full-solution-analysis-for-managed-code.md). |
| 40 | + |
| 41 | +## GC low-latency disabled |
| 42 | + |
| 43 | +To re-enable GC low-latency mode, restart Visual Studio. By default, Visual Studio enables GC low-latency mode whenever you are typing to ensure that your typing doesn't block any GC operations. However, if a low memory condition causes Visual Studio to display the automatic suspension warning, GC low-latency mode is disabled for that session. Restarting Visual Studio re-enables the default GC behavior. For more information, see <xref:System.Runtime.GCLatencyMode>. |
| 44 | + |
| 45 | +## Visual Studio caches flushed |
| 46 | + |
| 47 | +If you continue your current development session or restart Visual Studio, all Visual Studio caches are immediately emptied, but begin to repopulate. The caches flushed include caches for the following features: |
| 48 | + |
| 49 | +- Find all references |
| 50 | + |
| 51 | +- Navigate To |
| 52 | + |
| 53 | +- Add Using |
| 54 | + |
| 55 | +In addition, caches used for internal Visual Studio operations are also cleared. |
| 56 | + |
58 | 57 | > [!NOTE]
|
59 |
| -> The automatic feature suspension warning occurs only once on a per-solution basis, not on a per-session basis. This means that if you switch from Visual Basic to Visual C# (or vice-versa) and run into another low memory condition, you can possibly get another automatic feature suspension warning. |
60 |
| - |
61 |
| -## See Also |
62 |
| - [How to: Enable and Disable Full Solution Analysis](../code-quality/how-to-enable-and-disable-full-solution-analysis-for-managed-code.md) |
63 |
| - [Fundamentals of Garbage Collection](/dotnet/standard/garbage-collection/fundamentals) |
64 |
| - [Performance considerations for large solutions](https://github.com/dotnet/roslyn/wiki/Performance-considerations-for-large-solutions) |
| 58 | +> The automatic feature suspension warning occurs only once on a per-solution basis, not on a per-session basis. This means that if you switch from Visual Basic to Visual C# (or vice-versa) and run into another low memory condition, you can possibly get another automatic feature suspension warning. |
| 59 | +
|
| 60 | +## See also |
| 61 | + |
| 62 | +- [How to: Enable and Disable Full Solution Analysis](../code-quality/how-to-enable-and-disable-full-solution-analysis-for-managed-code.md) |
| 63 | +- [Fundamentals of Garbage Collection](/dotnet/standard/garbage-collection/fundamentals) |
| 64 | +- [Performance considerations for large solutions](https://github.com/dotnet/roslyn/wiki/Performance-considerations-for-large-solutions) |
0 commit comments