nsurlsessiond consuming bandwidth issue

This issue is mainly due to the icloud and other things such as photos etc are linked. It’s bascially downloading the files from apple servers. It can be bit annoying at times as it consumes most of the bandwidth making us sit idle for hours.

This can be a problem if you are having a limited network connection or you want to download something urgent. Stopping the process won’t help you here as the mac restarts the process as soon as it ends. The only way to disable is to unload the plists.

To do so, either you have to write a shell script to execute the below commands in terminal or you can use the apple script linked below. Apple script bascially runs the terminal commands for you.

Terminal commands are as follows:

!/bin/sh
 launchctl unload /System/Library/LaunchDaemons/com.apple.nsurlstoraged.plist
 launchctl unload /System/Library/LaunchAgents/com.apple.nsurlsessiond.plist
 sudo launchctl unload /System/Library/LaunchDaemons/com.apple.nsurlsessiond.plist
 sudo launchctl unload /System/Library/LaunchDaemons/com.apple.nsurlstoraged.plist

#you can save this as a sh file and execute it too.

Creating AppleScript (If that’s your way wink )
Another method, instead of using the linked applescript, you can create one your on. For that follow the steps.

  1. Open Automator
  2. Select New and select ‘Application’
  3. Search for ‘Run Applescript’ and open it.
  4. Paste the below code
 on run {input, parameters}
     tell application "Terminal"
         reopen
         activate
         do script " echo \"launchctl unload /System/Library/LaunchDaemons/com.apple.nsurlstoraged.plist\"" in window 1
         do script " echo \"llaunchctl unload /System/Library/LaunchAgents/com.apple.nsurlsessiond.plist\"" in window 1
         do script " echo \"sudo launchctl unload /System/Library/LaunchDaemons/com.apple.nsurlsessiond.plist\"" in window 1
         do script " echo \"sudo launchctl unload /System/Library/LaunchDaemons/com.apple.nsurlstoraged.plist\"" in window 1
     end tell
end run
  1. ┬áSave it as ‘application’. give a cool name and enjoy