Skip to main content
Adobe Photoshop Family

11 Messages

 • 

394 Points

Wed, May 4, 2011 10:05 AM

Photoshop: Is there a way to free up memory used by Photoshop?

When Im working with large files photoshop eats up my memory and even if I clear the history and close the file I do not get my memory back, I have to quit photoshop and restart it?

Im using Mac snow leopard with latest updates.

Responses

Official Solution

15.1K Messages

 • 

195.8K Points

9 years ago

Not a bug - Photoshop reuses memory constantly. There is no need to quit and restart unless you've been running a third party plugin that leaks memory.

1 Message

 • 

60 Points

Doesn's seems like, takes 6GB of ram, "I had settle to used until 4,4GB" and it doesn't care and uses 6, I close all the documents and open a new one and now is in 7GB, im totally lost with your meaning of "re use memory"

Official Solution

229 Messages

 • 

6K Points

9 years ago

This is less of a fragmentation issue and more of an application performance issue.

There is a significant performance benefit to allocating and re-using memory instead of de-allocating and re-allocating it each time we need it.

If you want more RAM available to other applications and the OS, lower the PS RAM % in Photoshop Preferences > Performance.

16 Messages

 • 

254 Points

how is that re-using it ? if after each panorama i get 2 more GB of RAM used up, after 3 panos my 8GB of RAM are full (with all files closed)
I see no benefit whatsoever, only huge problems, and getting more RAM doesn't help.
Can we at least have an option to clear the memory ?

15.1K Messages

 • 

195.8K Points

After closing a document, the memory from that document gets reused by the next document. The total memory usage will not increase unless you load documents that need more memory (including history states).
The benefit is that it runs MUCH faster than trying to free and reallocate memory. There is no problem, and no need to clear memory.

16 Messages

 • 

254 Points

I tested your theory and it seems to be true, i tested 2 sets of HDR, each using about 1.6-1.7GB and PS did reuse the allocated cache (only 0.14GB more where used)

Together with lowering the % of memory PS uses to 71% (5146MB) i'm pretty sure i won't have any issues no more.

Official Solution

14.6K Messages

 • 

282.6K Points

5 years ago

In the current version of Photoshop - If you hold the Option (macOS) or Alt (Windows) key while selecting About Photoshop the application will flush (release) all RAM and scratch disc in use by Photoshop.

Champion

 • 

879 Messages

 • 

18.9K Points

9 years ago

Tough topic. Photoshop keeps the memory for future uses to avoid memory fragmentation.

See: http://forums.adobe.com/thread/786514... for explanations by one of its engineers.

Look also at: http://kb2.adobe.com/cps/404/kb404439... or search for 'memory and performance" in the help files.

44 Messages

 • 

796 Points

What use is keeping old unused data in RAM? You couldn't get it back even if you wanted to.

11 Messages

 • 

394 Points

9 years ago

ok, I use buy more ram :)

7 Messages

 • 

244 Points

9 years ago

Say I open a 250mb file in Photoshop. We'll say this is a 300dpi image at around 5000x5000 pixels. This takes up quite a bit of memory and modifying this file consumes even more. I can see in the task manager that memory in Photoshop shoots up to anywhere from 500,000 to 1,000,000 KB -- particularly after several operations.

When I'm done using this image and close it, this memory should be RETURNED to the system -- instead of just sitting there with Photoshop.exe at over a gigabyte. I've heard programmers use the term "garbage collection" and I think this is what Photoshop needs to do better.

I find myself continuously RESTARTING Photoshop due to this poor release of memory. Otherwise, the application becomes entirely unusable --- even on a modern quad core system with 8GB of RAM.

This reply was created from a merged topic originally titled
Why doesn't Photoshop release memory after a file is closed?.

154 Messages

 • 

2.6K Points

9 years ago

my experience has been to have alot of ram - i have 16GB - which isn't alot for PS but not bad and - set PS to use 70% - any more than this I find causes big slowdowns. 70% not any more, seriously. And dont have any flash websites running in the background, use a flash blocker and run only what's necessary. This makes a big difference on my MAc Pro's

7 Messages

 • 

244 Points

9 years ago

Just to follow up on my previous post, my frustration would not be present if Photoshop didn't seriously slow down after I closed a large/high-res document that caused the memory usage to increase.

The issue again is that after I work with large files and PS's memory has ballooned up to 1GB or more, everything in Photoshop slows to a crawl and becomes unresponsive. As I indicated, the only way to solve this is to restart PS, which is why -- despite was said above about a "performance benefit to allocating and re-using memory" -- the inability to use PS becomes a serious problem. If there was a way to clear memory (maybe a command in a menu?) or better yet, PS did this automatically, that would help this situation considerably.

15.1K Messages

 • 

195.8K Points

That sounds more like you have a driver bug or third party plugin leaking memory.
Under normal use and behavior, Photoshop reuses memory and doesn't slow down like you describe.

Photoshop doesn't need to "clear" it's own memory, and can't do anything about leaks from third party sources.

173 Messages

 • 

3.8K Points

Chris, are there popular third party plugins known to leak memory? Is there a list of them available somewhere? Is there communication between Adobe and third party vendors about such issues?

15.1K Messages

 • 

195.8K Points

Yes, there is communication with third party vendors when we discover such issues. But there are leaks even in the OSes. But we try to get them fixed and don't publicly document them all. Nor do we test every single third party plugin..

7 Messages

 • 

244 Points

Chris, FYI my Photoshop has zero third party plugins and yet this slowdown persists. I've tried resetting preferences, reinstalling, etc. Nothing works. I've seen this issue on multiple computers. The more memory that Photoshop uses, the quicker this occurs. The only workaround is a restart.

15.1K Messages

 • 

195.8K Points

Then you need to look into the drivers on your system (display, printer, scanner, even mouse and custom utilities). This doesn't happen for most other users, doesn't happen on our systems, goes against the design of Photoshop, and basically should not be happening. But it happens on your system. So what is different about your system that might cause a memory leak?

158 Messages

 • 

14.3K Points

9 years ago

Dear Adobe Gripe #13922

"Please look at the TaskManager and observe how memory is never released until you quit Photoshop - not even when you close a file. This is very very wrong."

44 Messages

 • 

796 Points

9 years ago

I was making a high res image in Photoshop CS5.5 x64 on Windows 7 x64 SP1 with all the patches, and I closed the documents, went back to Photoshop adn it seemed snappy but when I went to Task Manager, it revealed that Photoshop was using ~2GB of RAM.

This reply was created from a merged topic originally titled
Photoshop doesn't release memory after closing all open documents..

78 Messages

 • 

1.9K Points

8 years ago

I often work on multiple images or very large images, so I have 16GB of RAM in my Mac for Photoshop to eat up. However, I've noticed that even when I've saved and closed all my images, Photoshop seems to hang onto whatever is in its RAM. If I open new images and continue to work, I often run into the "bonk" when Photoshop slows way down as it dumps less active data into the scratch disk and spinning beach balls of death dance in front of me. Rebooting Photoshop will clear up this problem. This is something I noticed with the Beta, and it seems to still be happening with the official release. I believe they call this problem a memory leak.

I had also figured this might be a product of the auto-save feature that Photoshop now has, which is awesome, but still it's annoying.

-Bruce!

This reply was created from a merged topic originally titled
PS CS6: Memory leak?.

44 Messages

 • 

796 Points

8 years ago

It's pretty simple, memory has to be reallocated to the system. it's sloppy, and you can try to justify it all you want, but it's ridiculous, nothing anyone says can change that.

78 Messages

 • 

1.9K Points

8 years ago

Is there a difference in the way Photoshop handles memory between CS5 and CS6? Everyone I work with who has upgraded to CS6 has had to include regular Photoshop restarts in their workflows and often complain about Photoshop becoming extremely slow and nearly unresponsive after a while, even after closing all Photoshop documents. I would expect that if all my multi-gig documents were open at the same time, but not after the point I close them!

78 Messages

 • 

1.9K Points

I just read PECourtejoie's comment and links above and it seems to make some sense for us. My CS6 users have ratcheted down our RAM usage and we'll see how it works out.

15.1K Messages

 • 

195.8K Points

No, there is no significant change in memory management. The only big problems we've seen are from some third party plugins that leak memory.

The only time CS5 was that slow or unresponsive was after many screen mode changes ('F' key) due to a window resource leak. And that issue is fixed in CS6.

2 Messages

 • 

80 Points

8 years ago

Using PS Elements 10 on a Mac Book Pro. No plug ins. No hardware apart from what's in the Mac. PS leaks memory like a sieve. I have 8GB and watch memory use using MemoryFreer (mac utility). Inactive memory climbs as PS runs. Free memory continues to decrease until it is gone as PS runs. Then a reboot is needed. Despite what Chris has to say, there is a serious glitch in PS memory management that causes all of us to frequently reboot.

15.1K Messages

 • 

195.8K Points

First, get rid of that utility - it does more damage than good.

Second - read the responses above: Photoshop is reusing memory. It's supposed to allocate up to the limit you set in preferences, and reuse that memory.

No, there is no known glitch. The Photoshop team is pretty aggressive about tracking down and fixing memory leaks (and filing bugs with OS vendors for their leaks that we can't fix).

Try this: get rid of that utility, then use Elements without worrying about the memory usage. If you have performance problems or errors after a while - then something else is going wrong, and we'll need details about your system to figure out what is wrong on your system.

16 Messages

 • 

254 Points

8 years ago

Why doesn't Photoshop CS6 clear the cache (RAM) it's using after i close the file ? it's not like any of the undo history or anything else is needed anymore.

The only way i can get Photoshop to do that is by closing it completely, then i have to re-open photoshop for the next file i wanna work on.

If i don't close it after each file the ram memory usage just keeps piling up, so that after 3 panoramas or HDRs my 8GBs are full and my PC slows right down.

This is a rather stupid problem to have, (i haven't seen any option in the preferences to fix this) i need an update to fix this asap.

This reply was created from a merged topic originally titled
PS6 not clearing the RAM it's using after closing a file.