Ad Widget

Collapse

Chrome process monitoring

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jeanbenzino
    Junior Member
    • Sep 2020
    • 3

    #1

    Chrome process monitoring

    Hello Zabbixians,

    I have a question regarding monitoring of Chrome process in zabbix.
    I need to monitor set of standard process counters such as virtual bytes, processor time, elapsed time.

    but standard perf_counter doesn't work in the case with chrome:
    for example key
    perf_counter["\Process(chrome.exe*)\Virtual Bytes",5]
    returns nothing.

    Maybe because there are multiple processes of chrome(for each tab or extension)
    I'd like to have sum of e.g Virtual bytes, or handle count for chrome and displayed on one graph.

    Could anybody help?
  • Sebastian
    Member
    • Jul 2020
    • 33

    #2
    Sure we can help. At first you have to find performance counters for vaules you want to monitor at the windows side.
    if counters are declared you can easy monitor it with zabbix.

    have you found interesting counters already? Have you checked at the windows side if counter is available?

    you can use powershell command to check currently available "Chrome" counters,

    Code:
    typeperf -qx  | where {$_ -match "Chrome"}
    Last edited by Sebastian; 07-05-2021, 11:19.

    Comment

    • Sebastian
      Member
      • Jul 2020
      • 33

      #3
      Have you been able to check if counter
      Code:
      perf_counter["\Process(chrome)\Virtual Bytes",5]
      Contains a sum vaule of all chrome.exe processes?

      Comment


      • jeanbenzino
        jeanbenzino commented
        Editing a comment
        Yes, in case of working set and private bytes - it's a sum (verified with processexplorer from sysinternal suite). So virtual bytes should be also sum, but still no data.
    • Sebastian
      Member
      • Jul 2020
      • 33

      #4
      I assume you have problem with importing counter data to Zabbix,

      Please try flollowing Powershell code to check counter at the windows side.

      Code:
      get-counter "\Process(chrome)\Virtual Bytes"
      you should get output similar to this:
      Timestamp CounterSamples
      --------- --------------
      5/10/2021 12:55:56 PM \\%hostname%\process(chrome)\virtual bytes :
      398868480

      I have added the same counter position to my zabbix installation ( I am using many other perf counters) to check if it works. will update results in some time.


      Last edited by Sebastian; 11-05-2021, 10:11.

      Comment


      • jeanbenzino
        jeanbenzino commented
        Editing a comment
        Yes, confirming, I have similar output
    • Sebastian
      Member
      • Jul 2020
      • 33

      #5
      It is working fine for me using key
      Code:
      perf_counter["\Process(chrome)\Virtual Bytes"]
      Some windows machines reports value 300~500MB - I assume it's proper
      others reports 2,2 TB I think it's an issue, I don't have 2 TB of RAM.

      Code:
      get-counter "\Process(chrome)\Virtual Bytes"
      
      Timestamp CounterSamples
      --------- --------------
      5/10/2021 3:32:56 PM \\%hostname%\process(chrome)\virtual bytes :
      2199574163456
      Last edited by Sebastian; 10-05-2021, 15:38.

      Comment

      • Sebastian
        Member
        • Jul 2020
        • 33

        #6
        Could you please explain what do you mean?

        Comment

        • Sebastian
          Member
          • Jul 2020
          • 33

          #7
          that's why I'm getting 2 TB memory used by google chrome?
          I don't use chrome extensions.

          Comment


          • jeanbenzino
            jeanbenzino commented
            Editing a comment
            Sebastian, I got 2TB as well, this is insane! Graph shows flat line on 2TB level. 32bit process can have limit of 2GB virtual memory, and 64bit - probably 4 GB, but definitely not 2TB.

            I will check in perfmon to compare.
            Last edited by jeanbenzino; 11-05-2021, 11:03.
        • jeanbenzino
          Junior Member
          • Sep 2020
          • 3

          #8
          Sebastian I see the same 2TB in perfmon, so it's not about zabbix.
          For me data from counter appeared after I changed counter setting "Type of information" to Numeric Unsigned.

          Perfmon shows the same 2 TB, and powershell command returns the same 2 TB.

          get-counter "\Process(chrome)\Virtual Bytes"

          Timestamp CounterSamples
          --------- --------------
          5/12/2021 7:31:18 AM \\jbz-pc\process(chrome)\virtual bytes :
          2307299127296

          At Least I've got a graph with some kind of data
          But to be honest i don't know what to do with tis data, cuz I don't believe it.

          Does anybody have any ideas why windows reports Chrome browser Virtual Bytes using more than 2 TB of virtual memory?

          Comment

          Working...