Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Memory leak on W7 x64 Post iOS9 upgrades iCloudServices.exe

Post upgrade of all my devices to iOS9 and upgrade of iTunes to v 12.3.044 I
am having repeated lockups and crashes of the iCloudServices.exe process. I get
low memory warning when the process approaches 1.6GB and then it just dies. I
can manually restart icloud app from the start menu and when I do so it runs
but resumes a slow climb back to 1.6gb and crashes again.

I have done a repair on the iCloud app and an uninstall / reinstall. Same
results

This iCloud app and process appear to be 32 bit v iTunes app is 64.


This behavior of the icloudservices.exe process began IMMEDIATELY after
upgrading to the iOS per comments above with no change to anything else on my
PC. My PC has 16gb ram so there is plenty available at all times.


I struggled through a similar issue with itunes app for more than 1 year ..
this was resolved via one of the iTunes updates during 2015 … here is thread documenting that history


https://discussions.apple.com/thread/4552821

Posted on Sep 25, 2015 4:18 AM

Reply
Question marked as Best reply

Posted on Sep 30, 2015 2:11 PM

small update .. i have again done an uninstall / reinstall and reboot .. but same results


the progression of the memory leak is very even .. 1.2GB per 24 hours .. i have captured this hourly and growth is constant even over night when PC is just sitting their dormant.


To forestall the low memory error i just end task and restart the icloud app. There seems to be no negative consequences other than the time to babysit this.

71 replies

Nov 7, 2015 5:28 AM in response to philipfromst ives

The process is started at boot time by a registry key in HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run:


"iCloudServices"="C:\Program Files (x86)\Common Files\Apple\Internet Services\iCloudServices.exe"


I disabled it with MSCONFIG, but the key was restored when iTunes was updated from 12.3 to 12.3.1. If you remove the key or disable the registry entry with MSCONFIG, it should stay off until iTunes is updated and the machine is rebooted.

Nov 16, 2015 6:20 AM in response to lottytx

I have this problem as well. I am running v5.0 of the iCloud Services application on Windows 10 x64 Enterprise.


I logged on this morning to see a running low on memory, and a prompt to close iCloud Services application. When the application initially starts, it is around 22 MB of RAM, with in 5 minutes it is using over 30MB of RAM, and it is still rising. There is an obvious memory leak in this application.


I am going to kill the application until the next Apple update. Kind of ridiculous that it has been a ongoing problem for 4 months.

Dec 27, 2015 5:23 AM in response to lottytx

Is it worthwhile me putting a wee programme together to kill icloudservices.exe every x hours? And restart it (if it hasn't automatically) after one hour?

It could maybe also keep a time-stamped CSV log of the memory usage for this exe - depending on how much info I can gather. I might even be able to include the ongoing version info ....


I'll start digging into it if y'all think it's worth it.

Dec 27, 2015 2:25 PM in response to gulbrain

Most definitely 🙂. Apple seems to have abandoned us, so yes please. I don't think you need to worry about a restart. I've noticed it does that quite regularly and reliably itself ( or maybe Outlook does this?). I also noticed that even if you kill the process, syncing still works, implying that icloudservices.exe stays resident until it's automatically reloaded and presumably overwrites the existing copy in memory.

Jan 6, 2016 1:59 PM in response to lottytx

I think we've all pretty well established that Outlook automatically reloads the iCloudservices.exe file, so the simplest fix (hopefully temporarily) would be to kill the service, say once a day around midnight or early morning. That should in theory be possible to do via the Scheduler Service...... Not sure if you can use it to terminate a process....

Jan 12, 2016 6:25 PM in response to philipfromst ives

OK, solved the problem. It needs the forced taskkill switch added to the command.


So it is: taskkill /im icloudservices.exe /f


Being new to this command, I wondered if you had to specify a path to the file, but testing this showed that it finds that itself.


I've put this command in a batch (.bat) file (called it taskkill icloudservices.bat) and set up a schedule to run every hour. This still allows Outlook to load icloudservices by itself, but restricts it to not growing to more than about 70Mb. Whilst it is not loaded/killed, Outlook continues to sync, so all good here. (it must have a resident (TSR) copy of it).


Not sure if not running icloudservices.exe affects syncing of photos - not tested that yet. If you need access to the iCloud control pane at any time, you can load it manually from the Program List. The kill task will kill it on the hour, so all good again.


If you would like me to post my Scheduler settings, let me know and I'll post a few screen shots.


Until Apple fix this issue, this is probably one of the simplest automated ways of preventing icloudservices.exe from growing without limit. If you don't mind it growing up to 1Gb, you could probably get away by just killing it once a day. There is a switch that lets you nominate the max size the file can grow to before killing it, but I could not get that to work.

Memory leak on W7 x64 Post iOS9 upgrades iCloudServices.exe

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.