Wi-Fi process using up to 16GB of memory Sometimes when I switch Wi-Fi network or connect to a VPN via Global Protect the memory usage of /System/Library/CoreServices/WiFiAgent.app shoots up and my fans go mental. Why?



This screenshot is one of the worst times it has happened, the usage is not alway consistent sometimes its 2GB, sometimes 6GB etc etc

Basic macbook pro 13" 2017
This link provides instructions on how to reset your wifi configuration and removing/resetting specific plist files on your system under "Make a New Wi-Fi Configuration in MacOS Mojave" (with other useful Wifi tips), it could possibly help:

http://osxdaily.com/2018/11/19/fix-macos-mojave-wifi-problems/