允许 CLR 使用内存

发布于 2024-10-03 04:02:08 字数 606 浏览 0 评论 0原文

我们遇到了一个问题,当我们尝试更改 SQL Server 中的 clr 程序集时,我们收到此错误消息:

Failed to initialize Common Language Runntime (CLR) due to memory pressure.
This is probably due to memory pressure in the MemToLeave Region of memory.
Error 6513

我找到了有关查看允许 CLR 使用多少内存等信息,并且遇到了此查询。

查询:

select 
single_pages_kb + multi_pages_kb + virtual_memory_committed_kb 
from sys.dm_os_memory_clerks where type = 'MEMORYCLERK_SQLCLR'

当我运行它时,我得到以下信息:

11676 kb or about 11MB

这是否意味着 CLR 只允许使用 11MB 的 MemToLeave 内存?

谢谢,

S

We have been running into an issue where we get this error message when we try to alter a clr assembly in SQL Server:

Failed to initialize Common Language Runntime (CLR) due to memory pressure.
This is probably due to memory pressure in the MemToLeave Region of memory.
Error 6513

I found information about looking at how much memory the CLR is allowed to use, etc and I came across this query.

Query:

select 
single_pages_kb + multi_pages_kb + virtual_memory_committed_kb 
from sys.dm_os_memory_clerks where type = 'MEMORYCLERK_SQLCLR'

When I run it I get this:

11676 kb or about 11MB

Does that mean that the CLR is only allowed to use 11MB of MemToLeave Memory?

Thanks,

S

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文