Allan Posted April 11, 2015 Share Posted April 11, 2015 Hi there! I have some problem with this process - nsurlstoraged - in OS X Yosemite. This process consumes about 854.3 MB (and this value goes increasing with time) writing on my disk. In Mavericks this process does not exist. Link to comment Share on other sites More sharing options...
intruder16 Posted April 11, 2015 Share Posted April 11, 2015 Not sure about nsurlstoraged, but nsurlsessiond is killing my internet bandwidth. Downloaded more than 5 GB's. Had to restrict it using firewall. 1 Link to comment Share on other sites More sharing options...
WaldMeister Posted April 11, 2015 Share Posted April 11, 2015 Nothing here except errors in the log files, which might be preventing it from reproducing your issue: Apr 11 19:46:05 MacBook-Pro-van-Alexander.local nsurlstoraged[256]: Error: execSQLStatement:onConnection:toCompletionWithRetry - SQL=COMMIT;, error-code=1, error-message=cannot commit - no transaction is active Apr 11 20:07:46 MacBook-Pro-van-Alexander.local nsurlstoraged[233]: realpath() returned NULL for /var/root/Library/Caches/ocspd Apr 11 20:07:46 MacBook-Pro-van-Alexander.local nsurlstoraged[233]: The read-connection to the DB=/var/root/Library/Caches/ocspd/Cache.db is NOT valid. Unable to determine schema version. Apr 11 20:07:46 MacBook-Pro-van-Alexander.local nsurlstoraged[233]: realpath() returned NULL for /var/root/Library/Caches/ocspd Apr 11 20:07:46 MacBook-Pro-van-Alexander.local nsurlstoraged[233]: ERROR: unable to determine file-system usage for FS-backed cache at /var/root/Library/Caches/ocspd/fsCachedData. Errno=13 Apr 11 20:56:16 MacBook-Pro-van-Alexander.local nsurlstoraged[230]: realpath() returned NULL for /var/root/Library/Caches/$(CFBundleIdentifier) Apr 11 20:56:16 MacBook-Pro-van-Alexander.local nsurlstoraged[230]: The read-connection to the DB=/var/root/Library/Caches/$(CFBundleIdentifier)/Cache.db is NOT valid. Unable to determine schema version. Apr 11 20:56:16 MacBook-Pro-van-Alexander.local nsurlstoraged[230]: realpath() returned NULL for /var/root/Library/Caches/$(CFBundleIdentifier) Apr 11 20:56:16 MacBook-Pro-van-Alexander.local nsurlstoraged[230]: ERROR: unable to determine file-system usage for FS-backed cache at /var/root/Library/Caches/$(CFBundleIdentifier)/fsCachedData. Errno=13 Apr 11 20:56:36 MacBook-Pro-van-Alexander.local nsurlstoraged[230]: realpath() returned NULL for /var/root/Library/Caches/ocspd Apr 11 20:56:36 MacBook-Pro-van-Alexander.local nsurlstoraged[230]: The read-connection to the DB=/var/root/Library/Caches/ocspd/Cache.db is NOT valid. Unable to determine schema version. Apr 11 20:56:36 MacBook-Pro-van-Alexander.local nsurlstoraged[230]: realpath() returned NULL for /var/root/Library/Caches/ocspd Apr 11 20:56:36 MacBook-Pro-van-Alexander.local nsurlstoraged[230]: ERROR: unable to determine file-system usage for FS-backed cache at /var/root/Library/Caches/ocspd/fsCachedData. Errno=13 Apr 11 20:57:28 MacBook-Pro-van-Alexander.local nsurlstoraged[276]: Error: execSQLStatement:onConnection:toCompletionWithRetry - SQL=COMMIT;, error-code=1, error-message=cannot commit - no transaction is active Apr 11 21:38:14 MacBook-Pro-van-Alexander.local nsurlstoraged[276]: Error: execSQLStatement:onConnection:toCompletionWithRetry - SQL=COMMIT;, error-code=1, error-message=cannot commit - no transaction is active Might be related/solve the issue: http://apple.stackexchange.com/questions/150945/nsurlstoraged-and-cpu-usage 1 Link to comment Share on other sites More sharing options...
Allan Posted April 11, 2015 Author Share Posted April 11, 2015 Nothing about this value in Activity Monitor > Disk ? Link to comment Share on other sites More sharing options...
WaldMeister Posted April 11, 2015 Share Posted April 11, 2015 Nothing about this value in Activity Monitor > Disk ? Disk: Memory: Link to comment Share on other sites More sharing options...
Allan Posted April 11, 2015 Author Share Posted April 11, 2015 WOW! Just 85 MB ?? I don't believe! You are using 10.10.3? Link to comment Share on other sites More sharing options...
WaldMeister Posted April 11, 2015 Share Posted April 11, 2015 Yes, since today, but on 10.10.2 i did not have this issue either. But i think it has something to do with my log, perhaps that a device on my notebook is not working as it should. We need a few more people to post logs Anyway, did you have a look at: http://apple.stackexchange.com/questions/150945/nsurlstoraged-and-cpu-usage ? 1 Link to comment Share on other sites More sharing options...
Allan Posted April 11, 2015 Author Share Posted April 11, 2015 Yes i read this matter, but delete com.apple.Safari is not permanently, I'll always have to do that. But, thanks anyway Link to comment Share on other sites More sharing options...
Allan Posted April 16, 2015 Author Share Posted April 16, 2015 I made a fresh installation of Yosemite (10.10.3) here, and look: nsurlstoraged loves me 1 Link to comment Share on other sites More sharing options...
intruder16 Posted April 17, 2015 Share Posted April 17, 2015 lol @Allan. Check which file its accessing. If you know the file you can troubleshoot it then. Here's mine btw, 1 Link to comment Share on other sites More sharing options...
Allan Posted April 17, 2015 Author Share Posted April 17, 2015 Nice! Hey, you use the iCloud services? E.g: Safari favorites, and etc... And what is your default web browser? When i use Chrome, the nsurlstoraged process decreases... Link to comment Share on other sites More sharing options...
intruder16 Posted April 17, 2015 Share Posted April 17, 2015 iCloud services No. Safari, Mail, Calendar etc yes. Chrome. Actually i use both chrome and safari. Your best bet is to find out which file is it accessing. On some forums, it is said its cause of a malware (MacKeeper?). In that case it is accessing cookies. 1 Link to comment Share on other sites More sharing options...
WaldMeister Posted April 17, 2015 Share Posted April 17, 2015 Your best bet is to find out which file is it accessing. To do this open terminal: sudo opensnoop | grep nsurlstoraged Output will be something like this: MacBook-Pro-van-Alexander:~ Lex$ sudo opensnoop | grep nsurlstoraged 501 3270 nsurlstoraged 44 /Users/Lex/Library/Caches/com.apple.AddressBookSourceSync/fsCachedData 501 3270 nsurlstoraged 44 /Users/Lex/Library/Cookies/HSTS.plist 501 3270 nsurlstoraged 33 /Users/Lex/Library/Cookies/HSTS.plist 501 3270 nsurlstoraged 33 /Users/Lex/Library/Caches/com.apple.Safari/fsCachedData/2441B135-04EA-4C02-AE41-C5BC7A6672E9 501 3270 nsurlstoraged 37 /Users/Lex/Library/Caches/com.apple.Safari/fsCachedData/2441B135-04EA-4C02-AE41-C5BC7A6672E9 501 3270 nsurlstoraged 33 /Users/Lex/Library/Cookies/Cookies.binarycookies_tmp_3270_0.dat 501 3270 nsurlstoraged 37 /Users/Lex/Library/Caches/com.apple.Safari/fsCachedData/2441B135-04EA-4C02-AE41-C5BC7A6672E9 501 3270 nsurlstoraged 33 /Users/Lex/Library/Cookies/HSTS.plist 501 3270 nsurlstoraged 33 /Users/Lex/Library/Cookies/HSTS.plist Source: http://osxdaily.com/2011/04/22/monitor-mac-os-x-filesystem-usage-access-with-opensnoop/ 2 Link to comment Share on other sites More sharing options...
Allan Posted April 23, 2015 Author Share Posted April 23, 2015 I noticed if I do not use Safari, and log out my iCloud account. The process is slightly reduced. It is bad news, because you lose the major functions of OS X. This OS X is the most problematic that I used. Link to comment Share on other sites More sharing options...
Gary_GW Posted April 27, 2015 Share Posted April 27, 2015 This fixed it for me since 10.10 To stop that from happening, put the following in a script file called STOP_NSURLSTORAGED or whatever you want to call it. do shell script "sudo launchctl unload -F /System/Library/LaunchDaemons/com.apple.nsurlstoraged.plist" user name "YourUsername" password "YourPassword" with administrator privileges do shell script "sudo launchctl unload -F /System/Library/LaunchAgents/com.apple.nsurlsessiond.plist" user name "YourUsername" password "YourPassword" with administrator privileges do shell script "sudo launchctl unload -F /System/Library/LaunchDaemons/com.apple.nsurlsessiond.plist" user name "YourUsername" password "YourPassword" with administrator privileges do shell script "sudo launchctl unload -F /System/Library/LaunchDaemons/com.apple.nsurlstoraged.plist" user name "YourUsername" password "YourPassword" with administrator privileges (Remember to replace YourUsername with your user name.) (The same applies to YourPassword.) Save it as an Application, then call it at startup from System Preferences, Users & Groups, Login Items Hope this helps if you still have that problem. Regards 1 Link to comment Share on other sites More sharing options...
Allan Posted April 27, 2015 Author Share Posted April 27, 2015 Wow! Very nice. I will test this when i get my home. Thank you Link to comment Share on other sites More sharing options...
Allan Posted April 28, 2015 Author Share Posted April 28, 2015 I create a .app here using "Script Editor". And this patch really works, but if i use Safari, everything goes back. Link to comment Share on other sites More sharing options...
Joe S. Posted September 23, 2015 Share Posted September 23, 2015 I have the similar problem, nsurlstoraged keep logging many error with something like the following when using the Safari. 9/23/2558 BE 2:58:03.739 PM nsurlstoraged[320]: Error: stepSQLStatement:toCompletionWithRetry - stepping returned unhandled result=11, DB=/Users/XXXX/Library/Caches/com.apple.Safari/Cache.db ..... ..... many of them in the log... .... .... So, i tries a couple ways from above and some google, by clear history and web cached, and also tried un-checked the Safari from iCloud, but nsurlstoraged still have error occurring the same message. Finally, i tried by remove the files under the following folder. ~/Library/Caches/com.apple.Safari - Clear History and Web Data from Safari menu - Quit and relaunch and check.. then, the nsurlstoraged error log is gone !! In my case, may be it cause from the caches file corrupts, it can be happen because Safari has crashed and stop working a few times in the past. I also turn back on the Safari sync in the iCloud setting again and everything back to normal, no any error from nsurlstoraged. Hope this help for someone. Link to comment Share on other sites More sharing options...
Allan Posted October 19, 2015 Author Share Posted October 19, 2015 The Apple's update for Safari fix this problem! Uhuuuu I use this version of Safari: Now my problem gone But thank you so much for your tips guys, you're amazing 2 Link to comment Share on other sites More sharing options...
Recommended Posts