I managed to resolve my issue with iTunes being unresponsive. I had dealt with second level technical support who in turn sent several log files to engineering however the exact issue was never discovered was resolved, what did work was reloading my library into a new iTunes library from scratch.
First a bit of background and then I'll share what I did that resolve the issue:
1) Issue I was having:
- iTunes unresponsive for 3-5 minutes minutes every time I plugged in an iPhone or an iPad Pad even though auto sync was disabled,
- iTunes unresponsive for 1 to 2 minutes every time I played any track,
- iTunes unresponsive when creating a new playlist or folder for playlists
1) Environment:
Computer: MacPro late 2013 model, 32GB RAM, running El Capitan (purchased in January)
Media location: OWC Thunderbay 4 - Thunderbolt 20TB external drive
# of tracks: 174,886
# of playlists: I didn't have a count although I had about over 3,000 playlists after running a script that had created various playlists by artist etc...
size on disk: 1.63TB
iOS apps: 1399
2) What I had tried (but didn't work):
- moved media to a totally different Thunderbolt drive
- created a new user and imported my library into a new iTunes
- created a new iTunes library - without importing my media - there were no issues although the test was not conclusive since I had nothing in the library
- deleted Sync Services
- replaced iPhone from iPhone 6 to iPhone 6s - same issue with iTunes unresponsive even after the upgrade of the iPhone
- replaced iPad from iPad 2nd generation to iPad Air - same issue with iTunes unresponsive even after the upgrade of the iPad
- converted videos for iPhone format (originally, I had noticed that syncing videos was making iTunes unresponsive even longer then 3-5 minutes, even short videos of 2 minutes)
Note: Every time I was doing testing, I kept exporting my library (File>Library>Library Export) and then re-imported it back into a new library (File>Library>Import Playlist) and I continued to have the same unresponsive iTunes.
3) What I did that resolved the issue:
After several months of trying this and trying that and becoming totally frustrated with iTunes having purchased my new MacPro in January including new external Thunderbolt drives, I finally managed to find a solution to my issue.
- created a new iTunes library
- iTunes Preferences>Advanced:
- disabled: Keep iTunes Media Organized - Disabled
- disabled: copy files to iTunes media folder when adding to library
- drag-dropped all music from my external drive music folder to iTunes
- (Note that I
- re-downloaded all iOS apps (ITunes Store> Purchased)
- plugged in iPhone and iPad to the MacPro and synced
- deleted the original playlists that I had originally synced with my previous iTunes
- recreated a few playlists manually (about 20)
Important note: I did NOT import my previous XML (playlist etc...) library into the new iTunes library.
4) Result
I tested that everything was successful. I have 174,886 tracks now in my iTunes and it works fast, I plugin my iPhone and iPad and iTunes only becomes unresponsive for about 1 to 2 seconds, I play any track and iTunes is fully responsive,...
Clearly the actual music files on the external drives were not the problem as was originally thought and the size of the library is not an issue for iTunes nor the Mac to handle.
If I launch iTunes using my old library, I have the exact same problem as before so the problem is clearly with something within that library. There is obviously something wrong with the original iTunes library that iTunes results in being unresponsive.
Reloading my iTunes library from scratch and NOT importing my XML library into the new library resolved the issue. By doing so, I lost all of my playlists that I had previously created and I'm not happy about that however at least now iTunes is responsive. I will not run the script to create playlists by artists as this will result in thousands of playlists and I don't really need that anyway as I can use the media browser within iTunes to find the same info.
The exact source of the problem was never found although at this point and with everything I've done, having spent well over 100 hours of time to look for a solution, I'm so happy that iTunes finally works fast. My suspicion here is that the # of playlists in my original library was the problem although I don't know for sure. I read a thread by Aophiuchus and deleting playlists resolved his issue as well so perhaps the # of playlists is really the source of the issue although I don't know what would be the threshold before iTunes becomes unresponsive.
So if you have a large library and many playlists, either consider deleting all or most of your playlists to see if that resolves the issue, or create a new library like I did, dragging/dropping your media without importing your old library and see if that works for you.