Tangents

photography tutorials, reviews & workshops

tangents photography blog
learn : discuss : share
subscribe today
  • Tangents
  • Tutorials
    • Flash Photography
    • Wedding Photography
    • Studio Photography
    • Posing People
    • Understanding Your Camera
    • Exposure metering
    • BFT
    • Best Photo Books
  • Workshops
    • Info: Workshops
    • In-person
      tutoring sessions
    • Online
      tutoring sessions
    • Video tutorials
    • Workshops in
      New Jersey (NJ)
    • Workshops in
      New York (NYC)
    • Studio Workshop
    • Workshop results
  • Books
    • On-Camera Flash (revised ed.)
    • Direction & Quality of Light
    • Off-Camera Flash Photography
    • Lighting & Design
    • On-Camera Flash (1st ed.)
  • Reviews
    • Nikon
    • Sony
    • Canon
    • Fuji
    • Profoto
    • lighting gear
  • Projects
    • Two Perspectives
    • B&W Infrared
    • Vintage lenses
    • Time-lapse photography
  • Info
    • About
    • Contact
    • Newsletter
    • Join us on Facebook
    • Books by NvN
    • Acclaim
    • Success Stories
    • Photo Gear
    • Photoshop Actions
    • Support this Site
  • Forum

Mac: Quick fix for Adobe Bridge CS5 / CS6 memory leak

November 7, 2012 Neil vN 24 Comments

A quick fix for memory leak problems with Adobe Bridge (Mac)

While I do have Lightroom and Aperture, I have a preference still for using Adobe Bridge to view (and edit) individual images or groups of images. What makes Bridge easy, is that the edits (via the .xmp files), are read by both Lightroom and Bridge.

There has been one problem that has been driving me crazy on my Mac when I use Bridge … the apparent memory leak with Bridge that eventually eats up all the Free Memory on my system. I used a program called iFreeMem to regularly free up memory on both my Macs, but the program worked less well with Mountain Lion. And when I upgraded my iMac to 16Gb of RAM, iFreeMem just didn’t work properly at all.

Then some sleuthing via Google showed me a very simple way of doing this. This is something so simple that any competent software engineer will smirk (and the Linux gurus will fall over laughing) … but I wanted to put this out there as info for photographers who use Mac and Adobe Bridge, and who have been as frustrated with this problem that Adobe refuses to fix. (Or could it be a Mac problem?)


The quick-fix / band-aid:  purging memory via Terminal

While this does nothing to solve the under-lying problem, it does help us get ahead and actually be able to use Adobe Bridge on our Macs.

– Open up Terminal (via Applications / Utilities)
– type in this command: purge

With the latest releases of OS-X, you will need to type in: sudo purge – then add your password

This will purge the memory, and you will be able to see the result on your Activity Monitor (as in the image at the top.)

To have easy access to this, I now keep Activity Monitor and Terminal on my Dock.

This quick fix now allows me to continue working with Adobe Bridge. Not an elegant solution, but it helps.

As always, I would love to hear from others if they have any tips or insights.

 

Links to related articles:

  • Bridge Help / Manage the cache | Adobe Bridge CS4, CS5  (Adobe)
  • Using Activity Monitor to read System Memory and RAM being used  (Apple)

 

Filed Under: digital workflow, Photoshop Tagged With: memory leak Adobe Bridge


 

Help support this website

If you find these articles of value, please help support this website by using these B&H and Amazon affiliate links to order your photo gear.

I also offer photography workshops and tutoring sessions, whether in person, or via online video tutoring sessions.

Stay informed via the monthly newsletter.

Please follow me on Instagram for more.

You can also join our thriving photo community in the Tangents group on Facebook, where we show our photos and discuss all things photography.

Thank you,

Neil vN

Books by Neil van Niekerk


 




24 Comments, Add Your Own

  1. 1Phil Goh says

    November 8, 2012 at 5:12 am

    I’m surprised that this works, as purge clears the disk cache. Memory leaks on the other hand occur when a program fails to release memory it had requested once it’s finished with it.

    I suspect that when the disk cache is flushed, your free memory increases because other well behaved applications have had their disk cache flushed and that memory is made available. This allows bridge to carry on leaking and claiming the newly free’d memory as its own. However, it does mean that other apps will have to regenerate their cached data and this might fail as there is no more free memory to use as a disk cache, thus impacting their performance.

    In short, this is a nasty hack and Adobe really needs to fix their memory leak.

    Reply
  2. 2Neil vN says

    November 8, 2012 at 5:14 am

    I’m willing to listen to any good advice. : )

    Reply
  3. 3Phil Goh says

    November 8, 2012 at 5:43 am

    Use Lightroom :)

    On a semi serious note, that Adobe are dragging their feet on an issue as serious as this suggests to me that Bridge on Mac isn’t that popular and isn’t receiving the love.

    Reply
  4. 4Trev says

    November 8, 2012 at 6:01 am

    Neil,

    Is it an Adobe problem or Mac users specific, do you know?

    Just I have never heard of that so I have been doing a couple of tests on my system [PC].

    i7 quad core 8 processors; 12G RAM; Western Digital Velociraptor 10,000 rpm drives.

    Now, I had every app I could think of open and with 76 Processes running, + including Photoshop, Bridge, ACR, Office, Lightroom, and several other standalone plug-ins running, it got to using a stable 3.68Gb memory, and the CPU only ever climbed to 52% briefly when running a very labor intensive action, lasting less then 6-8 seconds. The it sits back on the 0 to 3%.

    So I rang a mate with virtually identical set up to me, got him to open all apps, then check usage, very similar.

    Then I rang another mate, this one with an iMac, admitedly 3 years old, and the moment he opened Bridge, checking his resources, he noticed it steadily climbed but did not go back when not doing anything.

    Just wondered, that’s very strange, and I have not heard of it, obviously no need I suppose since I don’t run a Mac.

    I shall see what I can find mate, the guy with the Mac does not use Bridge constantly so he never noticed and he’s not a wedding photographer probably only doing a batch of around 50 nature shots at a time, but he’s pretty cluey with Macs, see if he can find out anything for you.

    Trev

    Reply
  5. 5Neil vN says

    November 8, 2012 at 6:20 am

    Without much proof, I do suspect it is shoddy software engineering on Adobe’s part with the Mac version of the software.

    Here’s a persistent Bridge CS3 problem though that I had when I still used Windows machines.

    Reply
  6. 6Neil vN says

    November 9, 2012 at 4:19 am

    Here it is again. Consistently and predictably.

    It is Adobe Bridge (CS6), that grinds down the available memory to a few Mb. Hitting the Purge command in Terminal, immediately releases the memory and I am back up to 12 Gb of the 16Gb installed.

    Doing this memory purge doesn’t seem to affect anything else on my computer. There’s no hiccup or anything. In fact, the computer starts working properly again.

    Reply
  7. 7Neil vN says

    November 9, 2012 at 4:19 am

    Reply
  8. 8Trev says

    November 9, 2012 at 9:27 am

    Neil,

    Well I talked to the guy I know, and he seems to agree with you, it’s Adobe version of Bridge for Mac.

    He did point out this link here: https://forums.adobe.com/thread/661588

    May/may not help.

    Reply
  9. 9Lorenzo says

    November 9, 2012 at 10:22 am

    Hi,

    A good practice on any kind of computer is to run periodically maintenance programs. On both Win and Macs I use CCleaner, a free program which flushes caches and tmp directories among many other things- pretty straightforward to use. Another Mac alternative is Onyx which does more or less the same. you’d be amazed at how much junk one accumulates.

    Cheers,

    Reply
  10. 10Trev says

    November 9, 2012 at 9:45 pm

    Lorenzo,

    Ditto. Every night before bed, CCleaner gets to do it’s little job.

    Also with the Registery, flushes out all unused/old registery entries.

    Takes less then a minute to run.

    Trev

    Reply
  11. 11Johann says

    November 10, 2012 at 7:26 pm

    Did you happen to know that you can make it even more simple?
    You can change your Activity Monitor Icon to show the memory usage, such as this.

    Here’s how you would want to do it. Option Click (or right click) the icon and choose this option.

    Reply
  12. 12Neil vN says

    November 10, 2012 at 11:16 pm

    aaaah, that’s a neat trick! Thanks.

    Reply
  13. 13Pete Mayes says

    November 13, 2012 at 6:15 am

    Hi
    It’s the same with Windows actually. I don’t have a fancy setup – Vista, Core 2 duo and 4gig ram. But Bridge CS6 drives me nuts – just get’s slower and slower and the whole computer eventually grinds to a halt.
    So, it’s not Mac only, I assure you!
    Pete
    BTW, off topic – a few posts back you promised us a review of the new Canon 24-70 2.8L Mk2. Waiting with baited breath as there seem to be various opinions out there!
    Cheers

    Reply
  14. 14eric langlois says

    November 14, 2012 at 3:36 pm

    Thanks for the tip Neil!!

    @Phil Goh – It is a well documented problem with Lightroom as well.

    Reply
  15. 15AdamJ says

    November 20, 2012 at 1:06 pm

    Good find!

    I’ve been using purge for a long time now, though I have it setup as a cron job running every 10 minutes, here is the code if you’re interested:

    Open terminal and enter the below to edit the cron file:

    sudo crontab -e

    Typically Mac chooses VIM as its editor (not good for new users), though I will show you how to use it.

    Now to enter the following:

    press the i key to edit the file then paste in:

    */10 * * * * purge

    To save press the esc key then the : key and then type qw and press enter.

    That’s it every ten minutes purge will run, as this was under the sudo account it will work for all user accounts :)

    To view your crontab enter sudo crontab -l

    Hope that helps someone!

    AJ

    Reply
  16. 16Mattie says

    November 28, 2012 at 4:59 pm

    I tried doing the purge but it says command not found, am I doing it wrong?

    Last login: Wed Nov 28 12:52:41 on ttys000
    Mattie-OKeefes-MacBook-Pro:~ mattieo777$ purge
    -bash: purge: command not found
    Mattie-OKeefes-MacBook-Pro:~ mattieo777$

    Reply
  17. 17Neil vN says

    November 28, 2012 at 5:01 pm

    Mattie .. I am stumped. Your copy & paste there looks exactly like it should in the Terminal window.

    I wonder if anyone else might have an idea?

    Reply
  18. 18Mattie says

    November 29, 2012 at 5:07 pm

    Did some more testing at home.

    The Activity meter starts at about 3.3 – 3.5GB (I have 4GB RAM) with nothing running, open Bridge drops about .5GB, open PS drops another .5GB, after about 3 – 4 pictures it down under 100MB.

    The purge function does nothing on my MacBook Pro? The only thing that releases the memory is restarting both programs… I’ve got to restart every 3 – 4 pictures?! How can any body attempt to get any work done? Boo Adobe/Apple.

    Mattie

    Reply
  19. 19Neil vN says

    November 29, 2012 at 5:11 pm

    The pattern that I’ve noticed, is that the memory gets eaten up only while Bridge is generating the cache. Once the cache is generated, then the memory use is fairly stable and consistent.

    Reply
  20. 20Simon Grosset says

    December 5, 2012 at 3:52 am

    I’ve discovered a bit of software called ‘freememory’, available on the app store, and it works:

    https://rockysandstudio.com

    It can be set to free the memory once available memory drops below a certain amount, or you can control it manually. It appears as an icon above your Mac desktop, alongside the time/battery/whatever icons.

    Simon

    Reply
  21. 21Tyler K says

    April 15, 2013 at 6:21 pm

    I do not believe that this is a problem with Adobe Bridge. This is just how Mac OS manages memory. As programs are opened and closed, inactive memory will be adjusted by the system. Inactive memory is still available to applications and the operating system. All you are doing with the purge command is clearing out the cache the system has built up. You will not do any harm to your system by using this command but you may find that commonly used applications may take longer to launch after using it.

    Reply
  22. 22Neil vN says

    April 16, 2013 at 12:54 am

    Yet, of all the programs I use, only Bridge exhibits this behavior.

    Bridge, in my experience, has bugs. And adobe doesn’t really seem to fix this, even with upgrade after upgrade.

    Reply
  23. 23Russ says

    April 5, 2015 at 2:42 pm

    I had our new iMAC installed with 32Gb of RAM (max), and were having lockup issues, slow starts etc with Photoshop and Bridge.

    Looking at Activity Monitor, 31.5Gb was being used when booting up Photoshop and Bridge, then stayed there.
    CPU was fine.

    Ran the sudo purge command in Terminal (purge without sudo was not allowed..), then password.
    After this, with Activity Monitor running, the used memory was at 23, and everything was working as expected.

    We run the Activity Monitor several times a week to check usage, but will try the crontab recommendation next!

    It appears that Photoshop (with all the actions this side of the Mississippi enabled) uses approx 13Gb to run.
    Thanks for the “fix”. I know it’s a workaround, but it really helped.

    Reply
  24. 24Mark Kidd says

    November 21, 2016 at 11:48 pm

    Neil

    Hi fellow South African thanks for the tip this works well and I can continue with production.

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

categories

Articles & Tutorials

  • • About myself & this site
    • Books by Neil vN
    • Best photography books
    • Black foamie thing
    • Spinlight 360
    • Photographers’ success stories
    • email newsletter
  • • Flash Photography Techniques
    • Natural looking flash
    • Flash + Ambient light
    • Dragging the shutter
    • Bouncing your flash
    • On-camera flash outdoors
    • Exposure metering
    • Flash exposure compensation
    • Bounce flash examples
    • Which is the best flashgun?
    • Flash brackets
    • Off-camera flash photography
    • Flash photography basics
    • Using video lights
    • Flash photography tips
    • Photography books
  • • Photography workshops NJ / NYC
    • Models @ photography workshops
tutorials:
flash photography
Photography
Workshops

Recent Comments

  • Neil vN: There is a distinct possibility of banding when using the electronic shutter. Some cameras are more...
  • Neil vN: Hi there Rick, Thank you for the kind words. As far as I know, Amazon automatically bumps up the price on...
  • Rick: Neil, I was having problems with my somewhat new Nikon z6ii flash not working correctly (or so I thought) and I...
  • Simon vail: Thank you for the post. I’d like to ask if you experience banding when using electronic shutter under...
  • Valent Lau: An interesting idea. Personally, I’ve been told I need to niche or else they (business network)...

All rights reserved. Copyright © Neil van Niekerk 2022 · Customization by The Traveling Designer

Copyright © 2022 · NvN on Genesis Framework · WordPress · Log in