Create a Snapshot File of ControlUp Components with dotTrace
    • Dark
      Light
    • PDF

    Create a Snapshot File of ControlUp Components with dotTrace

    • Dark
      Light
    • PDF

    Article Summary

    ControlUp components like the ControlUp Monitor (cuMonitor.exe), ControlUp Agent (cuAgent.exe) or the Real-Time Console usually come with lower overhead. In some cases, CPU consumption of a component can be higher than expected. The following topics are covered in two sections:

    1. A new feature added to version 8.6.5 allows you to disable the creation of a memory dump of the cuAgent process and to specify a path under which the cuAgent memory dump should be saved.
    2. It shows you how to use JetBrains dotTrace to generate a snapshot of the cuAgent.exe process which in our use case consistently consumes 5% of CPU.
      pasted image 0.png

    Automatic Snapshot File when cuAgent Crashes

    From version 8.6.5, you can set a path on your Agent machine to which a full memory dump of the cuAgent process is written. As the size of the full memory dump can reach many hundreds of megabytes, it is helpful to avoid saving the full memory dump on the C:/ partition.

    On the Agent machine:

    1. Create two new registry keys under SOFTWARE\Smart-X\ControlUp\Agent

      1. DisableDumpCreation
        Type: REG_SZ
        Possible values:
        • False: Dump file will be created as ControlupAgentEmergencyShutdown[dd_MM_yy_HH_mm_ss].dmp If registry key AgentDumpFileLocation is empty, the default path is C:\Windows\Temp. This is the default setting if the registry key is missing.
        • True: No dump file will be created
      2. DumpFileLocation
        Type: REG_SZ
        Possible values:
        • Any file system path on the Agent machine to which the dump is written. In our example, we want to dump file to be written in C:\
          image.png
    2. Restart the cuAgent service.

    3. The next time, the cuAgent crashes due to an unhandled exception, the memory dump will be written to the path you defined under DumpFileLocation.

    Using dotTrace to Generate a Snapshot File

    dotTrace is a .NET performance profiler that you can use to diagnose CPU performance issues with a ControlUp component. In this example, we show you how to generate a snapshot file for the cuAgent.exe process.

    Note

    JetBrains offers a 30-day trial that you need to activate. Make sure you create the trace file before the trial expires.

    To generate a trace file

    1. Download and install dotTrace on the machine where you wish to investigate the ControlUp process.
    2. Run dotTrace as an Administrator. Under Profiling, select the cuAgent.exe process and choose Timeline as Profiling Type. Click Start to run the trace.
      pasted image 0 (1).png
    3. A status bar is displayed indicating the profiling session is currently running.
      pasted image 0 (2).png
    4. Click Get Snapshot and Wait to create a snapshot of the cuAgent.exe process. If you check the Open snapshot immediately checkbox, the Timeline View opens.
      pasted image 0 (3).png
    5. Click File > Export snapshot and save the profiling snapshot file.
    6. Upload the dtt file to our Sharefile portal via this link.

    Was this article helpful?