2016-04-12 13 views
2

Bağlantı, RabbitMQ Sunucusu'na bağlantı kesildikten yaklaşık 4-5 dakika sonra NServiceBus çöküyor.NServiceBus, RabbitMQ ana bilgisayarına bağlantıyı kaybederken çöküyor

Yeniden oluşturmak için uygulamanızı başlattım, RabbitMQ bağlantılarını gördü, ağ kablomun bağlantısını kestiğini ve beklediğini gördüm. Yaklaşık 5 dakika sonra NServiceBus ana bilgisayarı çöktü.

Debug çalıştırırken, aşağıdaki hata iletisi aldım

: Bizim sunucuda

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. 

biz EventLog aşağıdaki adres:

:

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() 

Bu bizim RabbitMQ bağlantı dizesi

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

Bu kilitlenmesine neden oluyor? ondan kurtulmanın/yakalamanın bir yolu var mı? RabbitMQ sunucusundaki kesintileri nasıl inceleriz?

cevap

2

Bu durum, devre kesicinin servisin takılmadığından emin olmamaları, ancak yapamayacağı durumlarda kapanması nedeniyle gerçekleşmesidir.

Bağlantı düşürmesi durumunda daha uzun bir zaman aşımı var nokta konfigüre Eğer başarısızlık üzerine yeniden hizmet kurtarma ayarlayabilirsiniz Ayrıca "controlling behavior when broker connection is lost" for more information

görebilirsiniz.

İlgili konular