App Domain CPU Utilization

J

jay

Greetings


I have a C# windows service that creates several application domains.
Each app domain has it's own programs running, doing their own thing,
independent of each other.


Recently, someone gave me a component that spun off that misbehaved and

caused it to spike CPU usage. When you look at CPU Utilization in task
manager, you only see that the service is hogging it all, not the
specific domain.


I'd like to see how much CPU usage per app domain. Can someone point me

in the right direction, or offer any suggestions?


Thank you
 
W

Willy Denoyette [MVP]

Greetings


I have a C# windows service that creates several application domains.
Each app domain has it's own programs running, doing their own thing,
independent of each other.


Recently, someone gave me a component that spun off that misbehaved and

caused it to spike CPU usage. When you look at CPU Utilization in task
manager, you only see that the service is hogging it all, not the
specific domain.


I'd like to see how much CPU usage per app domain. Can someone point me

in the right direction, or offer any suggestions?


Thank you

Application domains are not active components, they are CLR logical contexts
unknown to the OS.
CPU utilization is related to OS thread contexts and as an OS thread can
cross AD borders, it's nearly impossible to say which thread is active in
which AD, unless you attach a debugger to the process.

Willy.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top