diff --git a/src/Microsoft.DotNet.Build.Tasks.Feed/src/PublishArtifactsInManifestBase.cs b/src/Microsoft.DotNet.Build.Tasks.Feed/src/PublishArtifactsInManifestBase.cs index dfa8dd31a45..c336a196ed9 100644 --- a/src/Microsoft.DotNet.Build.Tasks.Feed/src/PublishArtifactsInManifestBase.cs +++ b/src/Microsoft.DotNet.Build.Tasks.Feed/src/PublishArtifactsInManifestBase.cs @@ -70,13 +70,17 @@ public abstract class PublishArtifactsInManifestBase : Microsoft.Build.Utilities [Required] public string NugetPath { get; set; } - private const int StreamingPublishingMaxClients = 20; - private const int NonStreamingPublishingMaxClients = 16; + private const int StreamingPublishingMaxClients = 16; + private const int NonStreamingPublishingMaxClients = 12; /// /// Maximum number of parallel uploads for the upload tasks. /// For streaming publishing, 20 is used as the most optimal. /// For non-streaming publishing, 16 is used (there are multiple sets of 16-parallel uploads) + /// + /// NOTE: Due to the desire to run on hosted agents and drastic memory changes in these VMs + /// (see https://github.com/dotnet/core-eng/issues/13098 for details) these numbers are + /// currently reduced below optimal to prevent OOM. /// public int MaxClients { get { return UseStreamingPublishing ? StreamingPublishingMaxClients : NonStreamingPublishingMaxClients; } }