在运行结束时收集负载测试结果时抛出System.OutOfMemoryException [英] System.OutOfMemoryException thrown when collecting load test results at end of run
问题描述
大家好,
我在负载测试运行结束时收到错误测试是将结果写入存储库。
I'm receiving errors at the end of my load test run at the point where the test is writing the results to the repository.
这在visual studio 2010中报告:
This is reported in visual studio 2010:
运行测试时出错。 LoadTest已完成,但在收集最终结果时发生错误:无法访问负载测试结果存储库:抛出了类型'System.OutOfMemoryException'的异常。
Error occurred running test. The LoadTest completed but an error occurred while collecting the final results: Could not access the load test results repository: Exception of type 'System.OutOfMemoryException' was thrown.
控制器和代理商的事件日志产生:
The event log on the controller and agents yield:
(QTAgent32.exe,PID 2964,Thread 67)AgentObject.OnBackgroundSendTestMessage:调用控制器时发生异常。 System.OutOfMemoryException:抛出了类型'System.OutOfMemoryException'的异常。
服务器堆栈跟踪:
在System.IO.BinaryReader.ReadBytes(Int32计数)
在System.Runtime.Serialization.Formatters.Binary .__ BinaryParser.ReadArrayAsBytes(ParseRecord pr)
在System.Runtime.Serialization.Formatters.Binary .__ BinaryParser.ReadArray(BinaryHeaderEnum binaryHeaderEnum)
在System.Runtime.Serialization.Formatters.Binary .__ BinaryParser.Run()
在System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler,__BinaryParser serParser,Boolean fCheck,Boolean isCrossAppDomain,IMethodCallMessage methodCallMessage)
在System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream,HeaderHandler handler,Boolean fCheck,Boolean isCrossAppDomain,IMethodCallMessage methodCallMessage)
在System.Runtime.Remoting.Channels.CoreChannel.DeserializeBinaryRequestMessage(String objectUri,Stream inputStream,Boolean bStrictBinding,TypeFilterLevel securityLevel)
在System.Runtime.Remoting.Channels.BinaryServerFormatterSink.ProcessMessage(IServerChannelSinkStack sinkStack,IMessage requestMsg,ITransportHeaders requestHeaders,Stream requestStream,IMessage& responseMsg,ITransportHeaders& responseHeaders,
Stream& responseStream)
在[0]处重新抛出异常:
在System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg,IMessage retMsg)
在System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData,Int32 type)
在Microsoft.VisualStudio.TestTools.Controller.IControllerCallback.AgentEvent(String agentName,TestMessage message)
在Microsoft.VisualStudio.TestTools.Agent.AgentProcessManager.Microsoft.VisualStudio.TestTools.Controller.IControllerCallback.AgentEvent(String agentName,TestMessage message)
在System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md,Object [] args,Object server,Int32 methodPtr,Boolean fExecuteInContext,Object []& outArgs)
在System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg,Int32 methodPtr,Boolean fExecuteInContext)
在[1]处重新抛出异常:
在System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg,IMessage retMsg)
在System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData,Int32 type)
在Microsoft.VisualStudio.TestTools.Controller.IControllerCallback.AgentEvent(String agentName,TestMessage message)
在Microsoft.VisualStudio.TestTools.Agent.AgentObject。<> c__DisplayClass14。< OnSendTestMessage> b__12()
在Microsoft.VisualStudio.TestTools.Execution.ExecutionUtilities.InvokeController(Action invokeController,String caller,Boolean& connectionLost)
(QTAgent32.exe, PID 2964, Thread 67) AgentObject.OnBackgroundSendTestMessage: Exception occurred while calling into the controller. System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
Server stack trace:
at System.IO.BinaryReader.ReadBytes(Int32 count)
at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadArrayAsBytes(ParseRecord pr)
at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadArray(BinaryHeaderEnum binaryHeaderEnum)
at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run()
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
at System.Runtime.Remoting.Channels.CoreChannel.DeserializeBinaryRequestMessage(String objectUri, Stream inputStream, Boolean bStrictBinding, TypeFilterLevel securityLevel)
at System.Runtime.Remoting.Channels.BinaryServerFormatterSink.ProcessMessage(IServerChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders, Stream requestStream, IMessage& responseMsg, ITransportHeaders& responseHeaders,
Stream& responseStream)
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 Microsoft.VisualStudio.TestTools.Controller.IControllerCallback.AgentEvent(String agentName, TestMessage message)
at Microsoft.VisualStudio.TestTools.Agent.AgentProcessManager.Microsoft.VisualStudio.TestTools.Controller.IControllerCallback.AgentEvent(String agentName, TestMessage message)
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)
Exception rethrown at [1]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Microsoft.VisualStudio.TestTools.Controller.IControllerCallback.AgentEvent(String agentName, TestMessage message)
at Microsoft.VisualStudio.TestTools.Agent.AgentObject.<>c__DisplayClass14.<OnSendTestMessage>b__12()
at Microsoft.VisualStudio.TestTools.Execution.ExecutionUtilities.InvokeController(Action invokeController, String caller, Boolean& connectionLost)
(QTController。 exe,PID 6412,Thread 60)WebLoadTestAdapter:LoadTestResultsCollector:报告异常:Microsoft.VisualStudio.TestTools.WebStress.LoadTestException:LoadTest已完成,但在收集最终结果时发生错误:
无法访问负载测试结果存储库:抛出了类型'System.OutOfMemoryException'的异常。
在Microsoft.VisualStudio.TestTools.WebStress.LoadTestResultsCollector.CheckExceptions(String exceptionMessageName)
在Microsoft.VisualStudio.TestTools.WebStress.LoadTestResultsCollector.ProcessItemResults(LoadTestItemResultReport itemResultReport)
在Microsoft.VisualStudio.TestTools.WebStress.LoadTestControllerPlugin.ProcessMessage(TestMessage msg)
在Microsoft.VisualStudio.TestTools.WebStress.LoadTestControllerPlugin.MessageProcessingThread()
(QTController.exe, PID 6412, Thread 60) WebLoadTestAdapter: LoadTestResultsCollector: Reporting exception: Microsoft.VisualStudio.TestTools.WebStress.LoadTestException: The LoadTest completed but an error occurred while collecting the final results: Could
not access the load test results repository: Exception of type 'System.OutOfMemoryException' was thrown.
at Microsoft.VisualStudio.TestTools.WebStress.LoadTestResultsCollector.CheckExceptions(String exceptionMessageName)
at Microsoft.VisualStudio.TestTools.WebStress.LoadTestResultsCollector.ProcessItemResults(LoadTestItemResultReport itemResultReport)
at Microsoft.VisualStudio.TestTools.WebStress.LoadTestControllerPlugin.ProcessMessage(TestMessage msg)
at Microsoft.VisualStudio.TestTools.WebStress.LoadTestControllerPlugin.MessageProcessingThread()
感谢任何帮助。
- Jon
推荐答案
嗨Jon,
是否在32位/ 64位模式下运行负载测试?如果您在32位模式下运行,那么请尝试在64位模式下运行。
Are run running Load Test in 32bit / 64bit mode? if you are running in 32bit mode then can you please try running in 64bit mode.
谢谢,Rubel
这篇关于在运行结束时收集负载测试结果时抛出System.OutOfMemoryException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!