asp.net-core - 如何在 coreCLR 中设置 gcAllowVeryLargeObjects?

标签 asp.net-core coreclr

现在没有 app.config,如何将 gcAllowVeryLargeObjects 设置为 true 以便可以分配大数组?

最佳答案

可以使用对应的environment variable ;只需记住使用 COMPlus_ 前缀(例如 COMPlus_gcAllowVeryLargeObjects=1)。

您可以在运行 dotnet run 之前从命令行进行设置,也可以将其添加到 Visual Studio 中项目属性的环境变量部分(或者可能添加注册表项)。

关于asp.net-core - 如何在 coreCLR 中设置 gcAllowVeryLargeObjects?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37382652/

相关文章:

linux - Linux 上的 ASP.NET Core 1.0/Kestrel 未创建 unix 套接字

asp.net - 将 ASP.NET vNext 应用程序部署到 Azure 云服务

c# - 新 Visual Studio 2019 中的环境变量为空,但 Visual Studio 2017 中没有

c# - ASP.NET Core 流 - 将 block 写入请求

c# - kubernetes DNS 如何工作以及服务的主机名是什么?

.net - .net 抖动生成的 x86/x64 指令

c# - ASP.NET Core SignalR 使用 Azure AD 返回 401 Unauthorized

c# - clr abi文档中的"this"指针

c# - 入口点可以在 CoreCLR 上用 'async' 修饰符标记吗?

asp.net-core - dnxcore50 与 dnx451 的性能比较? (CoreClr 与 .net 框架)