To increase the performance of your Orleans application it is important that you tweak the .NET garbage collection settings. According to the documentation the best settings is a combination of gcServer=true and gcConcurrent=true.
This can be done inside your csproj file by adding the following lines:
<PropertyGroup> <ServerGarbageCollection>true</ServerGarbageCollection> <ConcurrentGarbageCollection>true</ConcurrentGarbageCollection> </PropertyGroup>
Remark: If the changed settings are not picked up immediately, deleting the bin/ and obj/ folders can help. (As mentioned here)