Completed
Last Updated: 03 Apr 2023 21:06 by ADMIN
ADMIN
Rodney
Created on: 16 Oct 2013 17:26
Type: Bug Report
5
Out of Memory Exception when opening tsperf file
We are trying to use the performance profiling feature and are hitting an issue trying to open the results via Test Studio.  From the trace file we can see that it is an out of memory error while parsing the JSON.  The file is large, but not that large (150 MB).

Here is the exception: 

[10/16 12:00:49,Telerik.TestStudio.exe(8208:11),Error] PerformanceMainViewModel.LoadLocalPerformanceResults() : EXCEPTION! (see below)
     Situation: Failed to extract metadata from "C:\Users\manor\Downloads\perf results\130263250855318769 CM7CreateAndLoop.tsperf".
     Outer Exception Type: System.OutOfMemoryException
     Message: Exception of type 'System.OutOfMemoryException' was thrown.
     HRESULT: 0x8007000E (Official ID (if app.) = E_OUTOFMEMORY, Error Bit = FAILED, Facility = FACILITY_WIN32, Code = DNS_ERROR_NO_MEMORY)
     Call Stack:
          at System.Text.StringBuilder.ToString()
          at System.IO.StreamReader.ReadToEnd()
          at System.IO.File.InternalReadAllText(String path, Encoding encoding, Boolean checkHost)
          at System.IO.File.ReadAllText(String path)
          at ArtOfTest.WebAii.Design.Execution.Profiler.Storage.ProfilerResultsFile.Load(Guid testGuid, String strFilePath, ResultsFileXmlRoot loadedResultObj)
          at ArtOfTest.WebAii.Design.UI.PerformanceMainViewModel.LoadLocalPerformanceResults()
1 comment
Cody
Posted on: 23 Oct 2015 20:34
To make things even worse, when the size of the result file is just barely over the size limit, Test Studio will "silently" fail. No error message is shown to the user yet Test Studio continues to run. When you go to the Performance tab, it sits there for a very long time loading results, then the next thing you see is the "Welcome to Performance Testing" dialog as if no result files exist. The user has no idea an error occurred, unless he things to enable logging and look at the log file.