• 0

Need to clear Photoshop's memory


Question

Hey all,

I am trying to automate the cropping of thousands of photos. I create an action (which includes closing the image) but when Photoshop starts the Batch process, it sucks up all the memory.

I'm looking at the Resource Monitor on Win8 and it's the Working Set that seems to being going up the most, followed by Shareable and Commit. The Private memory isn't rising too much though. I have 7.6GB of free memory available but Photoshop will use it all after a few hundred photos.

Is there something I can add to the Action to free up this memory? Purge doesn't do anything, and I can only free the memory after restarting Photoshop.

Photoshop CS6

Win8

Core i7 3770

16GB ram (7.6GB free)

Nvidia 460GTX

Thanks! :D

Link to comment
https://www.neowin.net/forum/topic/1130382-need-to-clear-photoshops-memory/
Share on other sites

10 answers to this question

Recommended Posts

  • 0

Navigate to C:\Users\YourUserName\AppData\Roaming\Adobe\Adobe Photoshop CS6\Adobe Photoshop CS6 Settings

and delete this file Adobe Photoshop CS6 Prefs.psp

Upon restarting photoshop it will create this file again for you.

Edit: I misread exactly what you were trying to accomplish. Disregard

  • 0

Hey all,

I am trying to automate the cropping of thousands of photos. I create an action (which includes closing the image) but when Photoshop starts the Batch process, it sucks up all the memory.

I'm looking at the Resource Monitor on Win8 and it's the Working Set that seems to being going up the most, followed by Shareable and Commit. The Private memory isn't rising too much though. I have 7.6GB of free memory available but Photoshop will use it all after a few hundred photos.

Is there something I can add to the Action to free up this memory? Purge doesn't do anything, and I can only free the memory after restarting Photoshop.

Photoshop CS6

Win8

Core i7 3770

16GB ram (7.6GB free)

Nvidia 460GTX

Thanks! :D

Assuming your system is configured correctly for pro image editing (CS6 not installed on the main OS drive but on a secondary)

PS should not be using so much memory off a single automated script.

Go to "Preferences > Performance" and make sure your main HDD is not being used as a scratch disk, but only your secondary.

From there allocate about 75% of your total Ram.

No need to delete any files :)

Now, if PS is installed on your main HDD alongside the OS, plus this being the same one

the files are being read and saved onto .... well .... there's your problem :rolleyes:

  • 0

Navigate to C:\Users\YourUserName\AppData\Roaming\Adobe\Adobe Photoshop CS6\Adobe Photoshop CS6 Settings

and delete this file Adobe Photoshop CS6 Prefs.psp

Upon restarting photoshop it will create this file again for you.

I did a quick test and see the memory usage rising again. What was this supposed to do?

I am not sure about being able to clear the cache of the app without closing it however, you can always try to allocate more ram to photoshop.

This might sound odd, but I don't think that will help. I already had it a little over 5GBs but it didn't care and sucked up the rest, all 7.6GB and my computer froze. I'm no memory expert but I think that effects the Private memory.

I think Photoshop isn't getting rid of the images in the memory. Some searching shows that it's designed like this on purpose, and that it should realize full memory and compensate, but it isn't. :(

Assuming your system is configured correctly for pro image editing (CS6 not installed on the main OS drive but on a secondary)

PS should not be using so much memory off a single automated script.

Go to "Preferences > Performance" and make sure your main HDD is not being used as a scratch disk, but only your secondary.

From there allocate about 75% of your total Ram.

No need to delete any files :)

Now, if PS is installed on your main HDD alongside the OS, plus this being the same one

the files are being read and saved onto .... well .... there's your problem :rolleyes:

EDIT:

PS installed on Maindrive

Scratch on secondary drive that also contains the files I am processing

  • 0

I did a quick test and see the memory usage rising again. What was this supposed to do?

This might sound odd, but I don't think that will help. I already had it a little over 5GBs but it didn't care and sucked up the rest, all 7.6GB and my computer froze. I'm no memory expert but I think that effects the Private memory.

I think Photoshop isn't getting rid of the images in the memory. Some searching shows that it's designed like this on purpose, and that it should realize full memory and compensate, but it isn't. :(

EDIT:

PS installed on Maindrive

Scratch on secondary drive that also contains the files I am processing

that is odd,... shouldn't be using so much RAM specially for typical 300dpi images :s

i guess the only solution is to allocate 100% of your ram, and let PS do its job, or if it locks up, separate into smaller batches :)

  • 0

that is odd,... shouldn't be using so much RAM specially for typical 300dpi images :s

i guess the only solution is to allocate 100% of your ram, and let PS do its job, or if it locks up, separate into smaller batches :)

I see. Smaller batches might have to be it, but that is just so wrong. I just wish photoshop would dump the memory. I have 16GBs but a sizeable ram disk. When comparing the current ram usage being used with the number of images it can get through, it will be a pain to have so many smaller batches. Arrrg

  • 0

I see. Smaller batches might have to be it, but that is just so wrong. I just wish photoshop would dump the memory. I have 16GBs but a sizeable ram disk. When comparing the current ram usage being used with the number of images it can get through, it will be a pain to have so many smaller batches. Arrrg

See the issue is that on script start up, PS grabs as much memory from the scratch disk as it thinks is going to use, but since it continues to re-calculate as the script is running, it moves on to the next available source, RAM, but since the script is still being executed, it continues to use more memory to recalculate while at the same time continuing with the script execution, and unfortunately wont release ram until script is completed (not to mention filter or plugin execution that usually needs more RAM allocation than what is already being used)

Very inefficient IMO but i guess is the only way :/

I actually had to figure this out the hard way by trying to open print-ready files (native AI format) which exceeded the 1.5gb limit

and editing dynamic layer filters .... :rolleyes: i've never seen photoshop crash so many times LOL

  • 0

See the issue is that on script start up, PS grabs as much memory from the scratch disk as it thinks is going to use, but since it continues to re-calculate as the script is running, it moves on to the next available source, RAM, but since the script is still being executed, it continues to use more memory to recalculate while at the same time continuing with the script execution, and unfortunately wont release ram until script is completed (not to mention filter or plugin execution that usually needs more RAM allocation than what is already being used)

Very inefficient IMO but i guess is the only way :/

I actually had to figure this out the hard way by trying to open print-ready files (native AI format) which exceeded the 1.5gb limit

and editing dynamic layer filters .... :rolleyes: i've never seen photoshop crash so many times LOL

Yeah that makes sense, this is extremely frustrating and I can't believe they have never changed this. I would have thought someone would have done this a lot and they would have improved!! I tried using a Ram Cleaner program (I have a feeling thats not a great idea, no one crucify me!) and that freed up the ram in the resrouce manager but it seemed to be like a superficial reading because Windows still popped up with a ram warning and crashed even with 7GBs free :/

This topic is now closed to further replies.
  • Posts

    • Helium Browser 0.13.5.1 by Razvan Serea Helium is a private, fast, and honest Chromium-based web browser — built for people, with love. It offers the best privacy by default, unbiased ad-blocking, and a clean experience free from bloat and noise. Proudly based on Ungoogled-Chromium, Helium removes Google’s clutter while keeping a fast, efficient development pipeline. With thoughtful touches like native !bangs and split view, Helium is a people-first, fully open-source browser that puts control back in your hands. Privacy, security, and control come first. Ads, trackers, and third-party cookies are blocked automatically, HTTPS is enforced everywhere, and all Chromium extensions work seamlessly — while Google can’t track your activity. Helium’s 13,000+ offline-ready !bangs let you jump straight to sites or AI tools like ChatGPT instantly. Open-source, people-first, and unbiased, Helium delivers a browsing experience that’s fast, secure, and free from noise, ads, and compromises. Helium Browser key features: Performance Fast, efficient, and lightweight — built on Chromium’s optimized engine. Energy-saving and consistent — stays fast over time without slowing down. No bloat — stripped of unnecessary components for maximum speed. Minimalist interface — compact, clean, and distraction-free. Customizable toolbar — hide elements you don’t need. Smooth and stable — no flicker, lag, or animation glitches. Comfort-focused experience — intuitive and unobtrusive. Privacy & Security Best privacy by default — blocks ads, trackers, phishing, and third-party cookies. Unbiased ad-blocking — powered by community filters and uBlock Origin. No telemetry or analytics — zero background web requests on first launch. Strict HTTPS enforcement — warns for insecure sites. Passkeys supported — modern authentication made simple. No built-in password manager or cloud sync — your data stays yours. Extension Compatibility Full Chromium extension support — including MV2 extensions. Anonymized Chrome Web Store requests — Google can’t track extension installs. Extended MV2 support — maintained for as long as possible. Smart Features Native !bangs — browse faster using 13,000+ offline-ready shortcuts. AI integration — use !chatgpt and others directly from the address bar. Offline functionality — bangs work without an Internet connection. Philosophy People-first design — open source, transparent, and community-driven. No ads, no noise, no bias — privacy and honesty over profit. Helium Browser 0.13.5.1 changelog: 7019790c revision: bump to 5 (#2001) b65ab87b bump-platform: fallback to clone if tarball fails (#2002) 1ff4e281 merge: update to chromium 149.0.7827.196 (#2000) b71fd25a patches: refresh for chromium 149.0.7827.196 53235ce9 merge: update ungoogled-chromium to 149.0.7827.196 3c92902a Update to Chromium 149.0.7827.196 d0a8c29d domsub: exclude docs/help domains from substitution (#1983) 2a53b77d Fix typos in comments and docstrings (#3828) Download: Helium 64-bit | Portable 64-bit |~100.0 MB (Open Source) Download: Helium ARM64 | Portable ARM64 Links: Helium Home Page | macOS | Linux | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • Xbox Insiders get Xbox 360 achievements and Gamertag character upgrades by Pulasthi Ariyasinghe Microsoft is continuing its fast-paced update schedule for Xbox Insiders. Today, the company announced a new slate of features it is rolling out to Xbox Insiders in the Alpha Skip-Ahead ring, which includes an expansion to the gamertag system, Xbox 360 achievements, and more. The unique Gamertag that Xbox users can choose for their profile is getting more characters. Instead of the 12-character limit, Insiders will now be able to get a Gamertag that's 15 characters long. The 12-character limit will still apply to Gamertags that are not unique or contain any non-Latin characters. Meanwhile, Microsoft is adding Xbox 360 game support to its Game Hubs. Selecting an installed Xbox 360 game on a modern Xbox console will now show achievement progress, captures, and other information. Achievement pop-ups are back for these classics too, which should be good news for achievement hunters. The next change is for Xbox players who can't wait to jump into their games when an update is required. "If a game requires an update and is available to stream through your Game Pass membership, you can start playing immediately with cloud gaming while the update downloads in the background," explains Microsoft. The final change of this Insider update is once again to the game cards. Insiders will find that all games, both released and upcoming, will now have a simple button to add to their profile's wishlist, making the process much easier from a single place. This Xbox update is rolling out today to Insiders in the Alpha Skip-Ahead ring. As usual, Microsoft aims to bring it to more Insiders over time before they reach all Xbox owners. Head here to find out how to join the Xbox Insider Program to get a chance to test these features and upcoming ones on both consoles and PC.
    • In the boot options in the UEFI is set to legacy or CMS? It needs to be set to UEFI if it's not already.
  • Recent Achievements

    • Dedicated
      Scoobystu earned a badge
      Dedicated
    • First Post
      Tom Schmidt earned a badge
      First Post
    • One Month Later
      D0nn13 earned a badge
      One Month Later
    • Rookie
      +ChiefOfNeo went up a rank
      Rookie
    • One Year In
      Tom Schmidt earned a badge
      One Year In
  • Popular Contributors

    1. 1
      +primortal
      463
    2. 2
      +Edouard
      177
    3. 3
      PsYcHoKiLLa
      123
    4. 4
      Michael Scrip
      81
    5. 5
      Xenon
      76
  • Tell a friend

    Love Neowin? Tell a friend!