使用 winDBG 获取 sharepoint w3wp.exe 进程内存转储

发布于 2024-08-04 22:55:43 字数 159 浏览 9 评论 0原文

我尝试使用 winDBG (adplus) 转储 w3wp 进程。

当我运行此命令 adplus.vbs -hang -quiet -p **** 时,我发现它创建了一个包含大文件的文件夹,并且大小正在增长。然后突然,大文件消失了,该过程再次重新开始。有人知道吗?

此致,

I try to use the winDBG (adplus) to dump the w3wp process.

When I run this command adplus.vbs -hang -quiet -p ****, I found it create a folder with a big size file, and the size was growing. Then suddenly, the big size file disappeared and the process re-start again. Does anyone know about it?

Best Regards,

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

独守阴晴ぅ圆缺 2024-08-11 22:55:43

永伟,

科林是对的;实际上,您正在与 IIS 竞争,因为它正在回收应用程序池。当您拍摄进程快照时,您要么达到了回收的内存阈值,要么运行状况检查发现进程被挂起并开始回收(可能是由于 ADPlus 锁定了进程)

以下是我将如何修改您的在尝试下一次捕获之前,应用程序池特征。您只需要在捕获转储时执行这些更改:

  • 关闭基于内存的回收限制(物理和虚拟)
  • 关闭空闲超时限制(如果已打开)
  • 禁用 Pinging 和快速故障保护

有效:您需要关闭所有尝试以保持应用程序池正常运行的功能。捕获内存快照需要时间(如您所知)。

我还建议查看 ProcDump (http://technet.microsoft.com/ en-us/sysinternals/dd996900.aspx)来自 SysInternals 人员。它上个月刚刚发布,它使进程内存捕获变得更加容易。有关使用它捕获 W3WP 的文章位于:http://blogs.msdn.com/webtopics/archive/2009/08/08/using-procdump-exe-to-monitor-w3wp-exe- for-cpu-spikes.aspx

我希望这有帮助!

Yongwei,

Colin is right; in effect, you're racing against IIS as it is recylcing the application pool. As you're snapping your process snapshot, you're either hitting a memory-threshold for recycling, or health checks are perceiving the process to be hung and instituting a recycle (possibly due to ADPlus locking the process)

Here's how I would modify your application pool characteristics prior to attempting your next capture. You only need these changes in effect for as long as it takes to capture your dump:

  • Turn off memory-based recycling limits (physical and virtual)
  • Turn off the idle timeout limit (if it's on)
  • Disable both Pinging and Rapid Fail Protection

In effect: you need to turn off all of the features that try to keep your app pools running well. Capturing a memory snapshot takes time (as you know).

I would also recommend checking out ProcDump (http://technet.microsoft.com/en-us/sysinternals/dd996900.aspx) from the SysInternals guys. It was just released last month, and it makes process memory captures a bit easier. An article on using it to capture the W3WP is here: http://blogs.msdn.com/webtopics/archive/2009/08/08/using-procdump-exe-to-monitor-w3wp-exe-for-cpu-spikes.aspx

I hope this helps!

新一帅帅 2024-08-11 22:55:43

我只能想象 w3wp 进程的内存使用量太多,从而触发了应用程序池回收,这意味着重新启动 w3wp。

I can only imagine the memory usage of the w3wp process got to much which triggered an app pool recycle, which means restarting w3wp.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文