How do I release editor memory?

I am building a lot of asset bundles. By themselves the asset bundles are not too big. When I start Unity3D and build the bundle, it will work flawlessly. However when I build a lot of these bundles in sequence (without restarting Unity3D) the editor runs out of memory and crashes. I have called the following code after each BuildPipeline.BuildAssetBundleExplicitAssetNames call:

GC.Collect();
Resources.UnloadUnusedAssets();

But this does not fix the problem…

You should probably try using EditorUtility.UnloadUnusedAssets in the editor. Resources.UnloadUnusedAssets is an operation to be yielded.

try AssetBundle.Unload()?