C# 32位上内存不足异常

发布于 2025-01-12 22:43:27 字数 430 浏览 1 评论 0原文

你好堆栈溢出社区。

目前,我最大的客户之一遇到了性能问题。我们的 WCF 服务器线性增长,直到崩溃。

我们已经发现了内存泄漏和未正确收集非托管对象的几个问题。

在我们的研究过程中,我们确定内存有几种类型。

  • 虚拟内存
  • 工作集内存
  • 私有字节

我的问题是,什么类型的内存会使我们的服务器崩溃? 每种类型内存的 32 位进程的限制是多少?

这是4.5标准框架下的WCF应用程序。大多数情况下运行在 32 位机器上,但也可以运行在 32 位 Windows 上。 (我已经看到 32 位应用程序不会在 32 位或 64 位 Windows 上分配相同数量的内存)

我们想要开发一个记录器,它可以在进程达到其最大内存分配以及是否会使其崩溃时发出警告。

感谢大家, 祝你今天过得愉快 !

Hello stack overflow community.

I currently have a performance problem with one of my biggest customers. Our WCF server grows linearly until it crashes.

We have already identified several problems with memory leak and unmanaged object that was not collected properly.

During our research we determined that there are several types of memory.

  • Virtual memory
  • Working set memory
  • Private bytes

My question is, what type of memory make our server crash?
What is the limit of a 32-bit process for each type of memory?

This is a WCF application in 4.5 standard framework. Which in most cases run on 32 bit machines but can also run on 32 bit windows. (I have seen that a 32 bit application does not allocate the same amount of memory on a 32 or 64 bit windows)

We want to develop a logger that can warn if a process reaches its maximum memory allocation and if it can make it crash.

Thanks to all,
Have a nice day !

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

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

发布评论

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