Analyze the network load of your Garrys Mod server and find bottlenecks
Garry's Mod NetCapture is an addon for Garry's Mod server that allows administrators to monitor network traffic in real-time and capture information for analysis and debugging purposes.
Please note that this script will temporarly modify the net receiver on your client and can lead to unexpected behaviour. However since this is only client-side, it will not break anything for other players and it will always be resetted after reconnecting.
- Download the
netcapture
folder from this repository. - Locate the Garry's Mod server installation directory on your system.
- Navigate to the
addons
folder within the Garry's Mod server directory. - Copy the
netcapture
folder into theaddons
folder. - The directory should be
/garrysmod/addons/netcapture/lua/autorun/client/netcapture.lua
- Restart your server
That's it! The NetCapture addon is now installed on your server.
To use the GMod NetCapture addon, follow these steps:
- Start your Garry's Mod server.
- As an administrator, open the console when you are on the server.
- Type the following command to start capturing network traffic:
net_capture_start
- To stop capturing network traffic, type the following command in the server console:
net_capture_stop
- The captured network data will be printed out to your console and also saved to your local
/garrysmod/data
folder (in your local game, not the server).
You can analyze the captured data to troubleshoot any network-related issues or optimize your server performance.
If you'd like to contribute to this project or report any issues, please create a pull request or submit an issue through the GitHub repository.
This project is licensed under a custom license. Please read the LICENSE file for more information.
This is also available in Steam Workshop. You can find it here: https://steamcommunity.com/sharedfiles/filedetails/?id=2947252907