Re: ADAM Memory Consumption



Okay, thanks for the response, and this makes sense now. I have a .NET
console application that uses DirectoryServices to update users. When the
console application began execution, ADAM immediately started acquiring
memory until it settled at 1.6GB. The console application was running slow,
and I thought it was because of ADAM's memory consumption.

However, the problem was that we missed an index when configuring the
production ADAM instance. Once we added the index to ADAM, we were relieved
to see the following

1) the console application performance was very fast and reflected what we
saw in other environments.
2) Memory consumption by the ADAM instance is significantly reduced (at
least in the initial verification). With the index applied, ADAM instance
memory consumption starts at ~50MB and only increases slowly as the console
application updates users.

Thanks for helping me out, and hopefully I have provided enough information
in this follow-up, so it is useful to others.

"Joe Richards [MVP]" wrote:

> As Dmitri indicated, the memory use by ADAM and AD is dynamic, if memory
> pressure increases, say because another app is added or something else needs the
> RAM, ADAM will back off the size of the cache.
>
> This memory allocation shouldn't be doing ANYTHING to slow down ADAM nor the box
> in general. In fact, ADAM should run faster and faster as more of the DIT gets
> cached.
>
> joe
>
> --
> Joe Richards Microsoft MVP Windows Server Directory Services
> www.joeware.net
>
>
> moke wrote:
> > I am wondering if adding more memory would alleviate the performance
> > degradation. Just to be clear, we are also planning to run SQL Server on
> > this cluster.
> >
> > "Dmitri Gavrilov [MSFT]" wrote:
> >
> >> ADAM (and AD) use a dynamic memory allocation algorithm, which will use max
> >> available memory on the box for db cache. If other applications require
> >> memory, ADAM will release some pages. It's all dynamic.
> >>
> >> However, this should never kill ADAM or box'es performance. Are you sure the
> >> perf is bad because of memory? Is it paging a lot?
> >>
> >> --
> >> Dmitri Gavrilov
> >> SDE, DS Admin eXperience
> >>
> >> This posting is provided "AS IS" with no warranties, and confers no rights.
> >> Use of included script samples are subject to the terms specified at
> >> http://www.microsoft.com/info/cpyright.htm
> >>
> >> "moke" <brutus@xxxxxxxxxxxxxxxxx> wrote in message
> >> news:8F675594-F6C2-4890-9BEA-D58DBD701996@xxxxxxxxxxxxxxxx
> >>> Please note the production server is Windows 2003 Enterprise Server with
> >>> HP
> >>> 380DL with dual procs and 2GB of memory.
> >>>
> >>> "moke" wrote:
> >>>
> >>>> I am working on project with a user store containing about 1.5 million
> >>>> users.
> >>>> We have 3 different environments (dev, test, and prod) where we have
> >>>> built
> >>>> and tested the user store.
> >>>>
> >>>> For some reason in the prod environment, after re-starting the adam
> >>>> instance
> >>>> using "Windows Services", we can watch the ADAM instance in "Task
> >>>> Manager"
> >>>> and it consumes 1.5+ GB of memory. The amount of memory consumed by this
> >>>> ADAM instance is similar to the size of the data file in ADAM. Is there
> >>>> a
> >>>> switch in ADAM to cap the amount of memory that can be used by an ADAM
> >>>> instance. In this particular instance, this kills the performance of
> >>>> ADAM
> >>>> and the box in general.
> >>
> >>
>
.



Relevant Pages

  • Re: ADAM Memory Consumption
    ... Makes perfect sense now. ... > console application that uses DirectoryServices to update users. ... > memory until it settled at 1.6GB. ... > production ADAM instance. ...
    (microsoft.public.windows.server.active_directory)
  • Re: ADAM process memory
    ... ADAM uses a dynamic cache allocation strategy. ... If other apps apply memory pressure, ... If you have a large DIT, and no other app is running on the machine, then it ...
    (microsoft.public.windows.server.active_directory)
  • Re: ADAM Memory Consumption
    ... ADAM use a dynamic memory allocation algorithm, ... >> I am working on project with a user store containing about 1.5 million ...
    (microsoft.public.windows.server.active_directory)
  • Re: ADAM Memory Consumption
    ... As Dmitri indicated, the memory use by ADAM and AD is dynamic, if memory pressure increases, say because another app is added or something else needs the RAM, ADAM will back off the size of the cache. ... For some reason in the prod environment, after re-starting the adam instance ...
    (microsoft.public.windows.server.active_directory)
  • Re: Form refreshing
    ... Strip down the problem code in both the base form and the calling form, ... "Adam Honek" wrote in message ... memory state in the form memory. ... :>: code for loading the settings etc. ...
    (microsoft.public.vb.winapi)