App Domain CPU Utilization

  • Thread starter Thread starter jay
  • Start date Start date
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
 
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.
 
Back
Top