You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Instructs the Garbage Collector to reconfigure itself by detecting the various memory limits on the system.
796
+
///
797
+
/// In addition to actual physical memory limit and container limit settings, these configuration settings can be overwritten:
798
+
///
799
+
/// - GCHeapHardLimit
800
+
/// - GCHeapHardLimitPercent
801
+
/// - GCHeapHardLimitSOH
802
+
/// - GCHeapHardLimitLOH
803
+
/// - GCHeapHardLimitPOH
804
+
/// - GCHeapHardLimitSOHPercent
805
+
/// - GCHeapHardLimitLOHPercent
806
+
/// - GCHeapHardLimitPOHPercent
807
+
///
808
+
/// Instead of updating the environment variable (which will not be read), these are overridden setting a ulong value in the AppContext.
809
+
///
810
+
/// For example, you can use AppContext.SetData("GCHeapHardLimit", (ulong) 100 * 1024 * 1024) to override the GCHeapHardLimit to a 100M.
811
+
///
812
+
/// This API will only handle configs that could be handled when the runtime is loaded, for example, for configs that don't have any effects on 32-bit systems (like the GCHeapHardLimit* ones), this API will not handle it.
813
+
///
814
+
/// As of now, this API is feature preview only and subject to changes as necessary.
815
+
///
816
+
/// <exception cref="InvalidOperationException">If the hard limit is too low. This can happen if the heap hard limit that the refresh will set, either because of new AppData settings or implied by the container memory limit changes, is lower than what is already committed.</exception>"
817
+
/// <exception cref="InvalidOperationException">If the hard limit is invalid. This can happen, for example, with negative heap hard limit percentages.</exception>"
818
+
///
819
+
/// </summary>
820
+
[System.Runtime.Versioning.RequiresPreviewFeaturesAttribute("RefreshMemoryLimit is in preview.")]
0 commit comments