2016-04-12 4 views
2

RabbitMQ Serverへの接続が失われてから約4-5分後にNServiceBusがクラッシュするという問題があります。RabbitMQホストへの接続を失うとNServiceBusがクラッシュする

私はアプリを起動し、RabbitMQが接続を見て、ネットワークケーブルを外して待っているのを見ました。約5分後、NServiceBusホストがクラッシュしました。

デバッグで実行している場合、私は次のエラーメッセージました:私たちはEventLogにして、次のしている私たちのサーバーで

Additional information: The runtime has encountered a fatal error. The address of the error was at 0xf6a94323, on thread 0xf8b8. The error code is 0x80131623. This error may be a bug in the CLR or in the unsafe or non-verifiable portions of user code. Common sources of this bug include user marshaling errors for COM-interop or PInvoke, which may corrupt the stack. 

を:

Application: NServiceBus.Host.exe 
Framework Version: v4.0.30319 
Description: The application requested process termination through System.Environment.FailFast(string message). 
Message: The following critical error was encountered by NServiceBus: 
Repeated failures when communicating with the broker 
    NServiceBus is shutting down. 
    Stack: 
     at System.Environment.FailFast(System.String, System.Exception) 
     at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) 
     at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) 
     at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() 
     at System.Threading.ThreadPoolWorkQueue.Dispatch() 

これが私たちのRabbitMQの接続文字列です:

は、
<add name="NServiceBus/Transport" connectionString="host=our_host_address;VirtualHost=OurVirtualHost;UserName=OurUser;Password=******;PrefetchCount=1;DequeueTimeout=30" /> 

このクラッシュの原因は何ですか?そこから回復する方法はありますか? RabbitMQサーバーからの切り離しを正常に処理するにはどうすればよいですか?

答えて

2

これは、サーキットブレーカがサービスがハングしていないことを確認しますが、サービスが動作しない場合はシャットダウンするためです。

あなたが失敗した場合に再起動するようにサービスの復旧を設定することができますまた"controlling behavior when broker connection is lost" for more information

を参照して、接続が切断される場合は、より長いタイムアウトを持っているエンドポイントを設定することができます。

関連する問題