WaWorkerHost.exe 崩溃角色:CallbackException

发布于 2024-10-26 23:53:38 字数 926 浏览 2 评论 0原文

当我在 Azure 上运行 WorkerRole C# 应用程序时,一段时间后 waworkerhost.exe 由于以下异常而崩溃:

Application: WaWorkerHost.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Runtime.CallbackException
Stack:
   at System.Runtime.Fx+IOCompletionThunk.UnhandledExceptionFrame(UInt32, UInt32, System.Threading.NativeOverlapped*)
   at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32, UInt32, System.Threading.NativeOverlapped*)

我有一个为 Web 服务器生成负载的应用程序。我不关心实际响应,但我想控制每秒发出的请求数。 因此,我有一个每秒触发一次并生成多个请求的计时器。我尝试了以下选项:

  • Parallel.For 与 WebRequests
  • For 循环与 ASync WebRequests
  • For 循环与 ThreadPool.QueueUserWorkItem(do webrequest)

当请求数量增加时,会出现异常(8+ req/sec)。所有三个选项都有相同的例外。当我在本地 DevelopmentFabric 中运行该角色时,所有三个选项都工作得很好。如果有人能给我一些关于可能出现问题的指示,我将不胜感激。如果您有其他想法从 Azure 和 C# 生成此类负载,请分享您的想法。

When I run my WorkerRole C# application on Azure, after a while waworkerhost.exe crashes due the following exception:

Application: WaWorkerHost.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Runtime.CallbackException
Stack:
   at System.Runtime.Fx+IOCompletionThunk.UnhandledExceptionFrame(UInt32, UInt32, System.Threading.NativeOverlapped*)
   at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32, UInt32, System.Threading.NativeOverlapped*)

I have an application that generates load to a webserver. I don't care about the actual response, but i want to control the number of requests made per second.
Therefore i have a Timer that fires every second and generates a number of requests. I have tried the following options:

  • Parallel.For with WebRequests
  • For loop with ASync WebRequests
  • For loop with ThreadPool.QueueUserWorkItem(do
    webrequest)

When the number of requests increase, the exception occurs (8+ req/sec). The same exception for all three options. When I run the role in local DevelopmentFabric all three options work just fine. If someone could give me some pointers on what might be going wrong I appreciate it. If you have other ideas to generate this type of load from Azure and C#, please share your thoughts.

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

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

发布评论

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

评论(1

同尘 2024-11-02 23:53:38

作者在原帖的评论中回答了这个问题,但为了更好的可见性,我将其报告到这里:

结果是 IntelliTrace 问题,请参阅
http://social.msdn.microsoft.com/Forums/en-ZA/windowsazuretroubleshooting/thread/543da280-2e5c-4e1a-b416-9999c7a9b841

...

在禁用 Intellitrace 的情况下重新部署我的解决方案后,问题
问题解决了,我的 WorkerRole 保持健康。

The author answered the question in the comment to the original post, but for better visibility, I'm reporting it to here:

Turn out to be an IntelliTrace issue, see
http://social.msdn.microsoft.com/Forums/en-ZA/windowsazuretroubleshooting/thread/543da280-2e5c-4e1a-b416-9999c7a9b841:

...

After redeploying my solution with Intellitrace disabled, the issues
where resolved, and my WorkerRole stayed healthy.

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