Ad Widget

Collapse

CPU and Memory usage for process in Windows

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Paras
    Junior Member
    • Aug 2017
    • 7

    #1

    CPU and Memory usage for process in Windows

    I am trying to monitor CPU and Memory usage for Windows Server, I do realize that proc.mem and proc.cpu.util are not available for Windows, I am trying to get output using performance counters here is my item key perf_counter[\Process(VBoxService)\Virtual Bytes] and using proc_info[VBoxService] using different option like vmsize/wkset.

    However using both methods I am getting answers totally different from Windows Task Manager.

    Eg
    VBox service using Task manager = 1412kb
    VBox service using perf_counter = 70mb
    VBoxService using proc_info = 2636kb

    Can any one please help me with this ?

    I want to have details like Memory and CPU utilisation for each process.

    I am able to do it in linux using proc.mem and proc.cpu.util but having difficulty in Windows.

    Thanks in advance.
  • neo32
    Senior Member
    • Nov 2013
    • 149

    #2
    Same problem, what to do ?

    Comment

    • mohit1993
      Junior Member
      • Feb 2018
      • 21

      #3
      Originally posted by Paras
      I am trying to monitor CPU and Memory usage for Windows Server, I do realize that proc.mem and proc.cpu.util are not available for Windows, I am trying to get output using performance counters here is my item key perf_counter[\Process(VBoxService)\Virtual Bytes] and using proc_info[VBoxService] using different option like vmsize/wkset.

      However using both methods I am getting answers totally different from Windows Task Manager.

      Eg
      VBox service using Task manager = 1412kb
      VBox service using perf_counter = 70mb
      VBoxService using proc_info = 2636kb

      Can any one please help me with this ?

      I want to have details like Memory and CPU utilisation for each process.

      I am able to do it in linux using proc.mem and proc.cpu.util but having difficulty in Windows.

      Thanks in advance.
      hey you got any solution for your question. if Yes then please let me know i have same issue.
      I had posted question here please check if you can help

      Comment

      • tcilmo
        Senior Member
        • Nov 2016
        • 122

        #4
        To monitor CPU in Windows, use key: perf_counter[\Processor(_Total)\% Processor Time]

        To monitor memory in Windows. use keys:

        vm.memory.size[total]
        vm.memory.size[free]

        Comment

        • Chewbakka-Wakka
          Junior Member
          • Feb 2018
          • 25

          #5
          Yes I have all those already, I am specifically referring to GPU counters. The CPU ones are simply as an example.

          Comment

          Working...