.Net服务挂起 [英] .Net service hangs

查看:66
本文介绍了.Net服务挂起的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个.Net应用程序在生产环境(Windows 2008 Server R2 Service Pack 1)上运行,该应用程序使用作为批处理作业实现并计划在特定时间间隔内运行的Window服务.基础架构基于.Net 框架4.0. .NET服务之一有望每20分钟开始执行一次,但最近发现它已挂起.我们已经检查了事件日志(应用程序级别和系统级别),但未报告任何错误.

We have a .Net Application running on Production environment (Windows 2008 server R2 service pack 1) that uses Window services implemented as a batch job and scheduled to run in a particular interval of time. The underlying architecture is based on .Net Framework 4.0. One of the .NET services is expected to start execution every 20 mins but recently it is found to be hanging. We have checked the Event logs (both application level and system level) but no errors are reported.

我通过以下链接建议在挂起状态下进行内存转储.

I went through the following link where it has suggested to take memory dumps during hung state.

http://blogs.msdn.com/b/tess/archive/2006/10/16/net-hang-debugging-walkthrough.aspx

http://blogs.msdn.com/b/tess/archive/2006/10/16/net-hang-debugging-walkthrough.aspx

但是,由于它是生产系统,因此客户未获得在生产系统上安装此调试工具的权限(如该链接中所述).

However, as it is a Production system, client has NOT given permission to install this debugging tool on the production system (as suggested in that link).

问题已由客户高度升级.因此要求有人是否可以建议其他替代方法/方法进行内存转储以找到确切的根本原因.

The issues has been highly escalated by client. So it is requested if someone can suggest any other alternate approach/means to take memory dump to find the exact root cause.

如果您需要进一步的信息,请告诉我.

Let me know if you need further information on this.

对相同内容的快速反应表示赞赏.我们需要尽早解决此问题.

Appreciate quick response on the same. We need to fix this issue at the earliest.

谢谢

Jaydeep Sarkar

Jaydeep Sarkar

推荐答案

嗨Jaydeep,

Hi Jaydeep,

根据您的情况,由于此服务在生产环境中运行.我认为最好的方法是在测试机中进行调试.尝试在相同的环境下重现此方案.

Based on your scenario,  since this service running on Production environment. I think the best way is debug in your test machine. Try to reproduce this scenario with the same environment.

有一个有关KB的讨论,您会从如何获得一些提示.调试Windows服务

There is a KB discuss about it, You'll get some hints from  How to debug Windows services

最诚挚的问候,

克里斯汀


这篇关于.Net服务挂起的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆