Quantcast
Channel: SQL Server Analysis Services forum
Viewing all articles
Browse latest Browse all 14337

Is ADOMD connection eating up all memory

$
0
0

Hi All,



I am using ADOMD connection to query our cube but lately, when I run queries, system is consuming lot of memory. I am not sure about the reasons. I am using following code.

 var connection = new AdomdConnection(connString);
        var command = new AdomdCommand(query, connection);
        connection.Open();
        var cellset = command.ExecuteCellSet();
        connection.Close();


This code is there for a while and I never faced any issue. But now looking at code I am thinking I should have created AdomdConnection with-in "using" block (to automatically invoke its dispose). I will use using block eventually as its not going to harm in anyways.

Question:

  • Is there a way to check if connection object is properly disposed or not?
  • Is there any way via code to check how many connections are open at this point of time?
  • Is there any way to profile how much memory each connection object is consuming?

I have used ANTS profiler and it does not show any trace of ADOMD connection class. Please share if you have any other tips while working with ADOMDConnection class --

Thank You--


Viewing all articles
Browse latest Browse all 14337

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>