简体   繁体   English

单个故障后,Azure服务总线绑定导致工作人员角色变得不正常

[英]Azure Service Bus Binding causes Worker Role to become unhealthy after single fault

I've been working on a Azure worker role that hosts a netTcpRelayBinding WCF service. 我一直在处理承载netTcpRelayBinding WCF服务的Azure辅助角色。 All seems to work well until One of my connected hosts disconnects unexpectedly. 一切正常,直到我连接的主机之一意外断开连接。 Over the next couple of minutes, the role consistently loses stability and then reports itself as unhealthy. 在接下来的几分钟内,该角色不断失去稳定性,然后报告自己不健康。

I'm not sure where I should be looking. 我不确定应该去哪里。 I've got IntelliTrace enabled, and I've got some exceptions, which start with the TimeoutException you'd expect, but then continue on. 我启用了IntelliTrace,并且有一些例外,这些例外从您期望的TimeoutException开始,然后继续。 I get these messages: 我收到以下消息:

System.ServiceModel.CommunicationException - Inactivity timeout of (00:00:10) has been exceeded. System.ServiceModel.CommunicationException-已超过(00:00:10)的不活动超时。

System.InvalidProgramException - The Common Language Runtime detected an invalid program System.InvalidProgramException-公共语言运行时检测到无效程序

After this, I get a series of communication exceptions, timeoutexceptions, and then eventually the whole host crashes with an OutOfMemoryException. 此后,我得到了一系列通信异常,超时异常,然后最终整个主机因OutOfMemoryException崩溃。

Things to note: I've got 1 client connected. 注意事项:我已经连接了1个客户端。 No other calls or activity. 没有其他通话或活动。 When he disconnects unexpectedly, the above consistently happens. 当他意外断开连接时,上述情况始终会发生。

Tried catching the servicehost Faulted but that seemed to do nothing (can't see where it was hit in IntelliTrace logs. 尝试捕获servicehost出现Faulted但这似乎无济于事(无法在IntelliTrace日志中看到它的位置)。

Any ideas on where I should be looking? 关于我应该去哪里看的想法? Surely I don't need to recreate the service every time something like this happens right? 当然,我不需要每次都发生这种情况时重新创建服务吗?

That doesn't sound familiar. 这听起来并不熟悉。 Can you reproduce this and how's your role feeling overall, meaning what's the CPU load looking like and what else is going on in parallel? 您能重现一下吗?您的角色总体感觉如何,这意味着CPU负载是什么样的,以及并行发生的其他事情?

Cheers, Clemens 干杯,克莱门斯

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM