Skip to main content
Participating Frequently
February 2, 2023
Question

Memory endless growth Mac M1

  • February 2, 2023
  • 20 replies
  • 3270 views

I have a MacBook Pro 16gb ram and 500g disk. I often need to use it to convert a large amount of ARW sony raw pics to jpeg. I use script to do it in Photoshop in batches of thousands of pics.

My problem is that no matter what operting system (just updated to Ventura) and no matter what photoshop version (running 24.1.1) the system keeps on eating memory up to 80-90Gb than it restart itself.

I have had already a tech from Adobe connect to my pc and went trough the dance of uninstall reinstall a dozen times. System still does the same, memory keeps growing and growing untill it reset the pc.

 

Same job done on a 5 years old PC running windows works for days without a prob.

 

Since i found a lot of post similar to mine with ever growing memory in photoshop or in other app like lightbridge.

 

i have a question for tech dept.

 

[ Profanity removed by Moderator ]

This topic has been closed for replies.

20 replies

Participating Frequently
February 3, 2023

Maybe it is not clear, i am using the photoshop scripting functionality. It is under file--->scripts.

In there i set the source directory and destination directory, set jpeg quality to 8 and that is it, nothing more i can do. Should be photoshop taking care of managing memory so that pc doesn't reboot after a couple of hours of work.

I am just using a photoshop functionality that just doesn't work as it should.

Legend
February 3, 2023

You can also use the app.purge() method to purge the Photoshop cache every n images or when app.freeMemory is below a specified value. This would let you reduce memory footprint dramatically.

app.preferences.imageCacheLevels will let you set those, if you want to do so as part of your script.

Inspiring
February 3, 2023

One strategy would be to reduce the number of history states from default to one or two before running a script.

D Fosse
Community Expert
Community Expert
February 3, 2023

I have to say that a scratch file of 80 GB sounds perfectly ordinary to me - if that's what this is; it's not clear from your description or screenshots.

 

I routinely see scratch files of several hundred GB when working on large files. That's normal, and nothing wrong with Photoshop. The scratch file contains all history states for all open documents. It will be orders of magnitude bigger than your nominal starting file sizes. All this is normal and expected. Photoshop does not purge memory (RAM or scratch disk) until you close the application. But it will be reused and recycled while open.

 

If you really are low on disk space, set History States to 1. That means you can't go back, but it will dramatically reduce the scratch size.

 

For scripts and actions, you should write them so that one file closes before the next one opens whenever possible. If many files are open at the same time, scratch size will explode.

Participating Frequently
February 3, 2023

Are you sure it is not the script that fails to manage the memory correctly?

Participating Frequently
February 3, 2023

This is what it looks like after a couple of hours of work.

 

https://share.icloud.com/photos/073GPQnRfhwJ8J_ESduDaQf1Q

Participating Frequently
February 3, 2023

Being an Adobe domain i tought some of their techs would show up t check probs.

This is a huge memory leak, i have had it since i got my M1, looking around it seems i am not alone, some people has same prob on photoshop, some on lightroom.

I already had an Adobe tech connect to my pc to check but he just reinstalled photoshop like i did a zilion times, obviously problem is still there and has been like this for a year now.

 

Participating Frequently
February 2, 2023

I am using the function script file--->script to convert batches of ARW pics to jpg.

It starts and memory just keeps growing and growing til 80Gb where the system crahes.

You can see it in the clip i attached, it just keeps growing and growing until crash. In the video it is already more than 10Gb memory used and has been working for around half an hour.

 

Macbook Pro 16gb ram 500gb disk

Photoshop 24.1.1

GPU disabled, if i enable it memory grows faster and faster.

 

https://share.icloud.com/photos/072X1SqCvAHkWSDmpw4Xmnodg

 

Ged_Traynor
Community Expert
Community Expert
February 2, 2023

@Corrado282216293d9h this is an Adobe user to user forum and we all try to help each other out here, using profanity does not help in getting a response, please try to refrain from using inappropriate language on the forum.

Legend
February 2, 2023

Please do not use profanity in posting here. We will try to help you but at this point have no idea what your problem might be.

When you say script, what script? Are you using the Image Processor or??? Batch processing can also be done with Bridge or Lightroom, or a third-party tool such as ImageMagick.

Please post your System info from Photoshop's Help menu so we have a better idea what might be going on, and any crash reports that are generated.