B
Bhasha
Hi All,
We are trying to build performance counters using WMI to publish
custom performance data from our .NET web service and we want this
performance data to persist after System reboots or System crashes. So
far we have explored and come up with following approaches:
1) Building WMI static classes which store the data in WMI repository.
(Note: Easy to implement and use, but it seems that storing
transactional data in WMI static repository is not recommended.)
2) Building WMI classes using COM Instance providers which store the
performance data in the local system resources such as Flat files,
Registry or Database.
(Note: More difficult to implement compared to previous approach,
as COM provider has to be written in C++. But this is the approach
which is generally recommended.)
However I am not able to decide which of these is better or if there
is any other approach. We even explored using system.diagnostics as an
alternative but had to reject it as it uses registry to store the
counter values.
Could any one suggest what the best practice for the above scenario
is?
Thanks in advance
Bhasha
We are trying to build performance counters using WMI to publish
custom performance data from our .NET web service and we want this
performance data to persist after System reboots or System crashes. So
far we have explored and come up with following approaches:
1) Building WMI static classes which store the data in WMI repository.
(Note: Easy to implement and use, but it seems that storing
transactional data in WMI static repository is not recommended.)
2) Building WMI classes using COM Instance providers which store the
performance data in the local system resources such as Flat files,
Registry or Database.
(Note: More difficult to implement compared to previous approach,
as COM provider has to be written in C++. But this is the approach
which is generally recommended.)
However I am not able to decide which of these is better or if there
is any other approach. We even explored using system.diagnostics as an
alternative but had to reject it as it uses registry to store the
counter values.
Could any one suggest what the best practice for the above scenario
is?
Thanks in advance
Bhasha