C# 32位上内存不足异常
你好堆栈溢出社区。
目前,我最大的客户之一遇到了性能问题。我们的 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论