Java API Wrapper for Windows Performance Counters
Now its time for a quick overview of the Java wrapper API for the Windows Performance Counters. Lifecycle System Preparation Library Initialization Counter Caching Key Retrieval Counter Usage Time Based Operations Related Posts Lifecycle The lifecycle for these counters is pretty straightforward: System Preparation: creation of counters in the Windows OS. Library Initialization: loading and initializing the library inside your running program Counter caching an optional step that warms up the counter library Key retrieval for any counter you use Counter usage including the API System Preparation You must create any custom counters as Administrator before running any program that uses the Performance Counter system. The simplest way to do this is in a Powershell script because Powershell is available on all modern Windows operating systems. The following sample script creates a new Category " Freemansoft.JavaTestCategory" and two s...