Have you ever run into “.net” error saying out of memory?
Today I was gathering performance counter (using profiler) for a procedure that was modified due to performance issues. I created a script for the procedure to be executed 1000 times , when executing the procedure from MMS there was a error generated with the following message “An error occurred while executing batch. Error message is: Exception of type 'System.OutOfMemoryException' was thrown.”
My first thought was the server ran out of memory due to the procedure been executed many times( not to mention the procedure modified was one of the bad procedures I had ever seen in a long time) . Then I executed only the first 300 rows from the script and it executed successfully.
Solution
Change the MMS setting from result to Grid to Result to Text and it worked fine. This is because MMS allows X number of data elements on the grid (This depends on the Result to Grid setting) and Result to text has no limit (as of what I gathered) .
Today I was gathering performance counter (using profiler) for a procedure that was modified due to performance issues. I created a script for the procedure to be executed 1000 times , when executing the procedure from MMS there was a error generated with the following message “An error occurred while executing batch. Error message is: Exception of type 'System.OutOfMemoryException' was thrown.”
My first thought was the server ran out of memory due to the procedure been executed many times( not to mention the procedure modified was one of the bad procedures I had ever seen in a long time) . Then I executed only the first 300 rows from the script and it executed successfully.
Solution
Change the MMS setting from result to Grid to Result to Text and it worked fine. This is because MMS allows X number of data elements on the grid (This depends on the Result to Grid setting) and Result to text has no limit (as of what I gathered) .
Thanks for the Post
ReplyDeleteGreat Help for Me
Thanks for the post. It resolved.
ReplyDelete