How to Disable DB, File or Socket Tracking in a .NET App


Overview

A vFunction organization may need to, in the course of debugging an issue with high CPU or high memory when the vFunction .NET Agent is installed, need to disable DB, Files or Sockets Tracking temporarily to understand which component is causing the heaviest increase in resources.


Disable DB Tracking

  1. Install the vFunction Agent on the .NET App
  2. Open the BASE_DIR\vfunction\config\agent\instances\INSTANCE_NAME\conf.json for the installed vFunction instance
  3. Add the following setting to the conf.json:
{
  ...
  "tracking_conf": {
    ...
    "db": false
  },
  ...
}
  1. Restart the .NET App

Disable Files Tracking

  1. Install the vFunction Agent on the .NET App
  2. Open the BASE_DIR\vfunction\config\agent\instances\INSTANCE_NAME\conf.json for the installed vFunction instance
  3. Add the following setting to the conf.json:
{
  ...
  "tracking_conf": {
    ...
    "files": false
  },
  ...
}
  1. Restart the .NET App

Disable Sockets Tracking

  1. Install the vFunction Agent on the .NET App
  2. Open the BASE_DIR\vfunction\config\agent\instances\INSTANCE_NAME\conf.json for the installed vFunction instance
  3. Add the following setting to the conf.json:
{
  ...
  "tracking_conf": {
    ...
    "sockets": false
  },
  ...
}
  1. Restart the .NET App