ViolationHandler
Tool for collecting information about server performance

Supported Games
GameServerKingsGameServerKings

It's a tool to collect information about server memory usage, plugins hook time and other things that affects server performance.

All data is saved in oxide/data/PerformanceMonitor/Reports.

Report creating speed DOES NOT depend on your server framerate

Console Commands

  • monitor.createreport - create report manually (need admin priv)
  • monitor.report - create report manually (need admin priv)

Configuration

{
  "Save file dates in European Format 27-06-2023 (other format is North American 06-27-2023)": false,
  "Create reports every (seconds)": 0,
  "Create plugins report": true,
  "Create plugins average hook-time report (Will substantially increase time of report)": false,
  "Create entities report": true,
  "Excluded entities": [
    "shortname here",
    "another here"
  ],
  "Excluded plugins": [
    "name here",
    "another name"
  ]
}

Data Output

{
  "Online players": 0,
  "Offline players": 1,
  "Entities report": {
    "Total": 27,
    "Owned": 0,
    "Unowned": 27,
    "List": {
      "planner": {
        "Total": 10,
        "Owned": 0,
        "Unowned": 10
      },
      "silencer.entity": {
        "Total": 4,
        "Owned": 0,
        "Unowned": 4
      },
      "m92.entity": {
        "Total": 4,
        "Owned": 0,
        "Unowned": 4
      },
      "hammer.entity": {
        "Total": 4,
        "Owned": 0,
        "Unowned": 4
      },
      "player": {
        "Total": 1,
        "Owned": 0,
        "Unowned": 1
      }
    }
  },
  "Items report": {
    "Total": 0,
    "Normal": 0,
    "Broken": 0
  },
  "Plugins report": [
    "SuicideVest (1.1.1), Total Hook Time = 0.2407431",
    "PermissionsManager (2.0.9), Total Hook Time = 0.0629354",
    "NTeleportation (1.7.3), Total Hook Time = 0.0355078",
    "Guardian (1.7.9), Total Hook Time = 0.0329294000000003",
    "BetterChat (5.2.12), Total Hook Time = 0.0002117",
    "BlockUsers (1.0.5), Total Hook Time = 0.0001312",
    "GunTypes (0.0.3), Total Hook Time = 0.0001069",
    "Friends (3.1.3), Total Hook Time = 0.0001011",
    "SuicideCooldown (0.0.5), Total Hook Time = 8.19E-05",
    "WhereIsMyHorse (1.0.0), Total Hook Time = 3.34E-05"
  ],
  "Plugins Average": null,
  "Performance report": {
    "frameID": 558983,
    "frameRate": 228,
    "frameTime": 4.39156532,
    "frameRateAverage": 227.6,
    "frameTimeAverage": 4.407732,
    "memoryUsageSystem": 2059,
    "memoryAllocations": 924,
    "memoryCollections": 141,
    "loadBalancerTasks": 0,
    "invokeHandlerTasks": 3017,
    "workshopSkinsQueued": 0,
    "ping": 0,
    "gcTriggered": false,
    "performanceSample": {
      "UpdateCount": 0,
      "FixedUpdateCount": 0,
      "RenderCount": 0,
      "PreCull": "00:00:00",
      "Update": "00:00:00",
      "LateUpdate": "00:00:00",
      "Render": "00:00:00",
      "FixedUpdate": "00:00:00",
      "NetworkMessage": "00:00:00",
      "TotalCPU": "00:00:00",
      "CpuUpdateCount": 0
    }
  }
}

Credits

  • Orange, the original developer of this plugin
MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.