Home All Groups Group Topic Archive Search About
Author
19 Dec 2008 11:43 AM
redrag
Hi all,

Apologies if a similar question has been asked.
I'm trying to find out how much memory a hashtable is using at a
particular time in my application.
I am using the hashtable for caching and I have two ways of caching, I
need to find out which way is using less memory. Any help greatly
appreciated.

Thanks

Author
19 Dec 2008 12:51 PM
Rowan R. Jugernauth
On Dec 19, 3:43 pm, redrag <Gerard.Cly***@gmail.com> wrote:
> Hi all,
>
> Apologies if a similar question has been asked.
> I'm trying to find out how much memory a hashtable is using at a
> particular time in my application.
> I am using the hashtable for caching and I have two ways of caching, I
> need to find out which way is using less memory. Any help greatly
> appreciated.
>
> Thanks

Hello there Gerard,

I ran into a similar situation (and it involved hashtables as well) -
and the best solution to this problem is to download and use a CLR
profiler. I'm no big expert myself, but the tool was a total breeze,
and it helped me decide which path to choose when it came to data
structures.

Here is a link about the CLR profiler that will help you out:
http://msdn.microsoft.com/en-us/library/ms979205.aspx

The link to download the CLR profiler is here:
http://download.microsoft.com/download/4/4/2/442d67c7-a1c1-4884-9715-803a7b485b82/clr%20profiler.exe

-Rowy
Are all your drivers up to date? click for free checkup

Author
19 Dec 2008 2:08 PM
redrag
Show quote Hide quote
On Dec 19, 12:51 pm, "Rowan R. Jugernauth" <Rowan.Ri***@gmail.com>
wrote:
> On Dec 19, 3:43 pm, redrag <Gerard.Cly***@gmail.com> wrote:
>
> > Hi all,
>
> > Apologies if a similar question has been asked.
> > I'm trying to find out how much memory a hashtable is using at a
> > particular time in my application.
> > I am using the hashtable for caching and I have two ways of caching, I
> > need to find out which way is using less memory. Any help greatly
> > appreciated.
>
> > Thanks
>
> Hello there Gerard,
>
> I ran into a similar situation (and it involved hashtables as well) -
> and the best solution to this problem is to download and use a CLR
> profiler. I'm no big expert myself, but the tool was a total breeze,
> and it helped me decide which path to choose when it came to data
> structures.
>
> Here is a link about the CLR profiler that will help you out:http://msdn.microsoft.com/en-us/library/ms979205.aspx
>
> The link to download the CLR profiler is here:http://download.microsoft.com/download/4/4/2/442d67c7-a1c1-4884-9715-...
>
> -Rowy

Thanks for your Help Rowy. I'll give it a try. Thanks again.

Bookmark and Share