1

Resolved

MSE Runtime Service crash under load

description

I created a simple WSF service with two operations (add, subtract) and expose it over tcp binding.
On the same server i installed mse runtime (messenger + broker) + catalog and virtualize the previous service.
Whenever i tried to perform a load test with 5 users and 1 second think time, runtime server crashed.
You will find the error and warning level eventlog entryies about the case below:
 
Event Type: Error
Event Source: MSE Runtime
Event Category: None
Event ID: 0
Date: 2/2/2009
Time: 1:29:34 PM
User: N/A
Computer: GBUSPCP01
Description:
Error in Broker delegate: End has already been called on this asynchronous result object.stack trace:
Server stack trace:
at System.ServiceModel.AsyncResult.End[TAsyncResult](IAsyncResult result)
at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.End(SendAsyncResult result)
at System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result)
at System.ServiceModel.Channels.ServiceChannel.EndRequest(IAsyncResult result)
 
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at System.ServiceModel.Channels.IRequestChannel.EndRequest(IAsyncResult result)
at Microsoft.MSE.Runtime.Services.Broker.BrokerServiceInstance.<>c__DisplayClass3.<BeginRequest>b__0(IAsyncResult )
 
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
 
 
Event Type: Warning
Event Source: MSE Runtime
Event Category: None
Event ID: 0
Date: 2/2/2009
Time: 1:29:34 PM
User: N/A
Computer: GBUSPCP01
Description:
Recreating broker instance context for endpoint net.tcp://gbuspcp01:8093/virtualService2. Reason: Current instance context state is Closed.
 
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

comments

erdem wrote Feb 2, 2009 at 12:03 PM

Just noticed the following trace lines occured before the crash in all runs.

mseTraceSrc Information: 0 : Waiting to acquire Catalog lock [Read] in GetOperationVersionsForEndpointAndAction
mseTraceSrc Information: 0 : Released Catalog lock [Read] in GetOperationVersionsForEndpointAndAction
mseTraceSrc Information: 0 : Waiting to acquire Catalog lock [Read] in GetOperationVersionsForEndpointAndAction
mseTraceSrc Information: 0 : Released Catalog lock [Read] in GetOperationVersionsForEndpointAndAction

wrote May 1, 2009 at 9:58 PM

botto wrote May 12, 2009 at 2:34 PM

The May 2009 CTP fixes this issue.

wrote May 12, 2009 at 2:34 PM

wrote May 12, 2009 at 2:42 PM

wrote May 12, 2009 at 2:42 PM

wrote Feb 14, 2013 at 7:07 PM

wrote May 16, 2013 at 9:11 AM

wrote May 16, 2013 at 9:11 AM

wrote Jun 14, 2013 at 7:07 AM