----------------------------------------------------------- New Message on BDOTNET
----------------------------------------------------------- From: spprivate Message 6 in Discussion Hi, Performance Counters are basically used to read the different categories of values like processor time,memory usage etc of the machine.Dont know how far you can use it for monitoring a connection or DB activity. Cheers Satheesh ************** The mechanism by which Windows collects performance data on various system resources is the performance counter. Windows contains a pre-defined set of performance counters with which you can interact; some of these are found on all Windows 2000 computers and some are custom to specific applications and are found only on certain computers. Each counter is related to a specific area of system functionality. Examples include counters that monitor a processor's busy time, memory usage, or the number of bytes received over a network connection. You use an instance of the PerformanceCounter component to connect directly to existing performance counters and interact with their data in dynamic ways. A performance counter monitors the behavior of performance objects on a computer. These include physical components, such as processors, disks, and memory, and system objects, such as processes and threads. In Visual Studio and the .NET SDK, these performance objects are shown as categories; system counters related to the same performance object are grouped into categories that indicate their common focus. When you create an instance of the PerformanceCounter component, you first indicate the category with which the component will interact and then choose a counter to interact with from within that category. For example, a category of counters on Windows is the Memory category. System counters within this category track data such as bytes available and bytes cached. To deal with bytes cached in your application, you create an instance of the PerformanceCounter component and connect it to the Memory category, then pick the appropriate counter in that category (Cached Bytes, in this case). ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/bdotnet/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. mailto:[EMAIL PROTECTED]
