How to monitor Memory & CPU...

How to monitor Memory & CPU...

am 22.10.2007 22:26:57 von thestriver

Hi Everybody !
Is it possible to monitor CPU and Memory utilization of individual
websites in IIS? I want to know if this can be achieved without using
third party software tools available on the internet.
Could it be some kind of counters to monitor, or MOM for IIS or
anything from Microsoft that can acheive this objective.
Thank you for your response.

Re: How to monitor Memory & CPU...

am 23.10.2007 16:54:59 von Ken Schaefer

You can monitor the memory usage of the relevant w3wp.exe process.
Individual websites can not be monitored directly. Memory is allocated to a
process, not a website, so you can't directly monitor how much memory a
website is using.

Similarly for CPU usage.

Cheers
Ken

--
My IIS Blog: www.adOpenStatic.com/cs/blogs/ken

"thestriver" wrote in message
news:1193084817.928066.242950@e34g2000pro.googlegroups.com.. .
> Hi Everybody !
> Is it possible to monitor CPU and Memory utilization of individual
> websites in IIS? I want to know if this can be achieved without using
> third party software tools available on the internet.
> Could it be some kind of counters to monitor, or MOM for IIS or
> anything from Microsoft that can acheive this objective.
> Thank you for your response.
>

Re: How to monitor Memory & CPU...

am 23.10.2007 17:52:30 von thestriver

On Oct 23, 10:54 am, "Ken Schaefer"
wrote:
> You can monitor the memory usage of the relevant w3wp.exe process.
> Individual websites can not be monitored directly. Memory is allocated to a
> process, not a website, so you can't directly monitor how much memory a
> website is using.
>
> Similarly for CPU usage.
>
> Cheers
> Ken
>
> --
> My IIS Blog:www.adOpenStatic.com/cs/blogs/ken
>
> "thestriver" wrote in message
>
> news:1193084817.928066.242950@e34g2000pro.googlegroups.com.. .
>
>
>
> > Hi Everybody !
> > Is it possible to monitor CPU and Memory utilization of individual
> > websites in IIS? I want to know if this can be achieved without using
> > third party software tools available on the internet.
> > Could it be some kind of counters to monitor, or MOM for IIS or
> > anything from Microsoft that can acheive this objective.
> > Thank you for your response.- Hide quoted text -
>
> - Show quoted text -

Was still wondering would it not have been great if there was a way to
assertain how much CPU and Memory individual websites were actually
using? And, I do not know, however, third party softwares available on
the net claim that their software could tackle this.
Microsoft should, I think, include this facet into IIS as monitoring
CPU and Memory for websites has a very strong business significance
and the practical uses of this facet is inummerable.

Re: How to monitor Memory & CPU...

am 23.10.2007 19:27:50 von Kristofer Gafvert

Hi,

It is kind of difficult to see how much memory and cpu a certain website
consume, since a website does not correspond to a process. A website is
being served by one or more worker processes (and one worker process may
be shared by multiple websites).

I hardly think that anyone can figure out how much memory or CPU a
specific website use, if its worker process is shared by multiple
websites. But i have to admit that i have not checked out any of the
applications that claim this, so i don't know if they have some kind of
solution to it.

If you know which worker process(es) a certain website use, and you know
that no other websites use these worker processes, than it's easy and just
some math.

So basically, it is impossible. We need to look at worker processes to
figure out memory and cpu consumptions.

--
Regards,
Kristofer Gafvert
http://www.gafvert.info/iis/ - IIS Related Info


thestriver wrote:

>On Oct 23, 10:54 am, "Ken Schaefer"
>wrote:
>>You can monitor the memory usage of the relevant w3wp.exe process.
>>Individual websites can not be monitored directly. Memory is allocated to
>>a
>>process, not a website, so you can't directly monitor how much memory a
>>website is using.
>>
>>Similarly for CPU usage.
>>
>>Cheers
>>Ken
>>
>>--
>>My IIS Blog:www.adOpenStatic.com/cs/blogs/ken
>>
>>"thestriver" wrote in message
>>
>>news:1193084817.928066.242950@e34g2000pro.googlegroups.com ...
>>
>>
>>
>>>Hi Everybody !
>>>Is it possible to monitor CPU and Memory utilization of individual
>>>websites in IIS? I want to know if this can be achieved without using
>>>third party software tools available on the internet.
>>>Could it be some kind of counters to monitor, or MOM for IIS or
>>>anything from Microsoft that can acheive this objective.
>>>Thank you for your response.- Hide quoted text -
>>
>>- Show quoted text -
>
>Was still wondering would it not have been great if there was a way to
>assertain how much CPU and Memory individual websites were actually
>using? And, I do not know, however, third party softwares available on
>the net claim that their software could tackle this.
>Microsoft should, I think, include this facet into IIS as monitoring
>CPU and Memory for websites has a very strong business significance
>and the practical uses of this facet is inummerable.

Re: How to monitor Memory & CPU...

am 23.10.2007 20:41:45 von thestriver

On Oct 23, 1:27 pm, "Kristofer Gafvert"
wrote:
> Hi,
>
> It is kind of difficult to see how much memory and cpu a certain website
> consume, since a website does not correspond to a process. A website is
> being served by one or more worker processes (and one worker process may
> be shared by multiple websites).
>
> I hardly think that anyone can figure out how much memory or CPU a
> specific website use, if its worker process is shared by multiple
> websites. But i have to admit that i have not checked out any of the
> applications that claim this, so i don't know if they have some kind of
> solution to it.
>
> If you know which worker process(es) a certain website use, and you know
> that no other websites use these worker processes, than it's easy and just
> some math.
>
> So basically, it is impossible. We need to look at worker processes to
> figure out memory and cpu consumptions.
>
> --
> Regards,
> Kristofer Gafverthttp://www.gafvert.info/iis/- IIS Related Info
>
>
>
> thestriver wrote:
> >On Oct 23, 10:54 am, "Ken Schaefer"
> >wrote:
> >>You can monitor the memory usage of the relevant w3wp.exe process.
> >>Individual websites can not be monitored directly. Memory is allocated to
> >>a
> >>process, not a website, so you can't directly monitor how much memory a
> >>website is using.
>
> >>Similarly for CPU usage.
>
> >>Cheers
> >>Ken
>
> >>--
> >>My IIS Blog:www.adOpenStatic.com/cs/blogs/ken
>
> >>"thestriver" wrote in message
>
> >>news:1193084817.928066.242950@e34g2000pro.googlegroups.com ...
>
> >>>Hi Everybody !
> >>>Is it possible to monitor CPU and Memory utilization of individual
> >>>websites in IIS? I want to know if this can be achieved without using
> >>>third party software tools available on the internet.
> >>>Could it be some kind of counters to monitor, or MOM for IIS or
> >>>anything from Microsoft that can acheive this objective.
> >>>Thank you for your response.- Hide quoted text -
>
> >>- Show quoted text -
>
> >Was still wondering would it not have been great if there was a way to
> >assertain how much CPU and Memory individual websites were actually
> >using? And, I do not know, however, third party softwares available on
> >the net claim that their software could tackle this.
> >Microsoft should, I think, include this facet into IIS as monitoring
> >CPU and Memory for websites has a very strong business significance
> >and the practical uses of this facet is inummerable.- Hide quoted text -
>
> - Show quoted text -

Thanks for the insight. Does IIS Management Pack for MOM have a way
about this?

Re: How to monitor Memory & CPU...

am 24.10.2007 04:18:36 von Ken Schaefer

"thestriver" wrote in message
news:1193154750.533209.227970@e9g2000prf.googlegroups.com...
> On Oct 23, 10:54 am, "Ken Schaefer"
> wrote:
>> You can monitor the memory usage of the relevant w3wp.exe process.
>> Individual websites can not be monitored directly. Memory is allocated to
>> a
>> process, not a website, so you can't directly monitor how much memory a
>> website is using.
>>
>> Similarly for CPU usage.
>>
>> Cheers
>> Ken
>>
>> --
>> My IIS Blog:www.adOpenStatic.com/cs/blogs/ken
>>
>> "thestriver" wrote in message
>>
>> news:1193084817.928066.242950@e34g2000pro.googlegroups.com.. .
>>
>>
>>
>> > Hi Everybody !
>> > Is it possible to monitor CPU and Memory utilization of individual
>> > websites in IIS? I want to know if this can be achieved without using
>> > third party software tools available on the internet.
>> > Could it be some kind of counters to monitor, or MOM for IIS or
>> > anything from Microsoft that can acheive this objective.
>> > Thank you for your response.- Hide quoted text -
>>
>> - Show quoted text -
>
> Was still wondering would it not have been great if there was a way to
> assertain how much CPU and Memory individual websites were actually
> using? And, I do not know, however, third party softwares available on
> the net claim that their software could tackle this.
> Microsoft should, I think, include this facet into IIS as monitoring
> CPU and Memory for websites has a very strong business significance
> and the practical uses of this facet is inummerable.

Inside each process, there are individual threads. Threads are allocated CPU
time. But since a thread, being a kernel mode object, has no knowledge of
"websites", or "web pages" or anything like that. It just needs to
execute/run some code.

Threads belong to processes - processes are allocated memory. A process
doesn't necessarily correspond to a website (since you can have multiple
websites in a single web app pool, or multiple web app pools serving a
single website).

So, what you are asking is quite difficult to achieve.

Cheers
Ken

Re: How to monitor Memory & CPU...

am 24.10.2007 04:20:31 von Ken Schaefer

Hi,

IIS Management pack some some built in rules that can help. But remember
that IIS Management pack doesn't give you anything that doesn't already
exist (e.g. in Perfmon, Event Log, IIS log files etc). IIS Management Pack
can't "make up" information that otherwise isn't available.

So, IIS Management pack can get you average time taken for a page, or warn
you when CPU for a worker process exceeds certain threshhold. But yo have
that information anyway.

What a MP is supposed to do is:
a) provide you with rules that indicate when things are going /bad/ (i..e
not healthy) rather than you having to deterine all these rules yourself
(i.e. describes a health model for aparticular service/product)
b) aggregate all this information for you into a single place

Cheers
Ken

"thestriver" wrote in message
news:1193164905.144614.163750@e9g2000prf.googlegroups.com...
> On Oct 23, 1:27 pm, "Kristofer Gafvert"
> wrote:
>> Hi,
>>
>> It is kind of difficult to see how much memory and cpu a certain website
>> consume, since a website does not correspond to a process. A website is
>> being served by one or more worker processes (and one worker process may
>> be shared by multiple websites).
>>
>> I hardly think that anyone can figure out how much memory or CPU a
>> specific website use, if its worker process is shared by multiple
>> websites. But i have to admit that i have not checked out any of the
>> applications that claim this, so i don't know if they have some kind of
>> solution to it.
>>
>> If you know which worker process(es) a certain website use, and you know
>> that no other websites use these worker processes, than it's easy and
>> just
>> some math.
>>
>> So basically, it is impossible. We need to look at worker processes to
>> figure out memory and cpu consumptions.
>>
>> --
>> Regards,
>> Kristofer Gafverthttp://www.gafvert.info/iis/- IIS Related Info
>>
>>
>>
>> thestriver wrote:
>> >On Oct 23, 10:54 am, "Ken Schaefer"
>> >wrote:
>> >>You can monitor the memory usage of the relevant w3wp.exe process.
>> >>Individual websites can not be monitored directly. Memory is allocated
>> >>to
>> >>a
>> >>process, not a website, so you can't directly monitor how much memory a
>> >>website is using.
>>
>> >>Similarly for CPU usage.
>>
>> >>Cheers
>> >>Ken
>>
>> >>--
>> >>My IIS Blog:www.adOpenStatic.com/cs/blogs/ken
>>
>> >>"thestriver" wrote in message
>>
>> >>news:1193084817.928066.242950@e34g2000pro.googlegroups.com ...
>>
>> >>>Hi Everybody !
>> >>>Is it possible to monitor CPU and Memory utilization of individual
>> >>>websites in IIS? I want to know if this can be achieved without using
>> >>>third party software tools available on the internet.
>> >>>Could it be some kind of counters to monitor, or MOM for IIS or
>> >>>anything from Microsoft that can acheive this objective.
>> >>>Thank you for your response.- Hide quoted text -
>>
>> >>- Show quoted text -
>>
>> >Was still wondering would it not have been great if there was a way to
>> >assertain how much CPU and Memory individual websites were actually
>> >using? And, I do not know, however, third party softwares available on
>> >the net claim that their software could tackle this.
>> >Microsoft should, I think, include this facet into IIS as monitoring
>> >CPU and Memory for websites has a very strong business significance
>> >and the practical uses of this facet is inummerable.- Hide quoted text -
>>
>> - Show quoted text -
>
> Thanks for the insight. Does IIS Management Pack for MOM have a way
> about this?
>