Jump to content

11 posts in this topic

Posted

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

Share this post


Link to post
Share on other sites

Posted

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

and delete this file [b]Adobe Photoshop CS6 Prefs.psp[/b]

Upon restarting photoshop it will create this file again for you.[/s]

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

Share this post


Link to post
Share on other sites

Posted

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.

Share this post


Link to post
Share on other sites

Posted

[quote name='thatguyandrew1992' timestamp='1357932781' post='595448052']
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
[/quote]

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:

Share this post


Link to post
Share on other sites

Posted

[quote name='Marshall' timestamp='1357933191' post='595448066']
Navigate to C:\Users\YourUserName\AppData\Roaming\Adobe\Adobe Photoshop CS6\Adobe Photoshop CS6 Settings

and delete this file [b]Adobe Photoshop CS6 Prefs.psp[/b]

Upon restarting photoshop it will create this file again for you.
[/quote]
I did a quick test and see the memory usage rising again. What was this supposed to do?

[quote name='littleneutrino' timestamp='1357933267' post='595448068']
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.
[/quote]
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. :(

[quote name='hckngrtfakt' timestamp='1357933556' post='595448080']
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:
[/quote]

EDIT:
PS installed on Maindrive
Scratch on secondary drive that also contains the files I am processing

Share this post


Link to post
Share on other sites

Posted

[quote name='thatguyandrew1992' timestamp='1357933702' post='595448084']
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
[/quote]

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 :)

Share this post


Link to post
Share on other sites

Posted

[quote name='hckngrtfakt' timestamp='1357934352' post='595448114']
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 :)
[/quote]
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

Share this post


Link to post
Share on other sites

Posted

[quote name='thatguyandrew1992' timestamp='1357934662' post='595448134']
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
[/quote]

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

Share this post


Link to post
Share on other sites

Posted

[quote name='hckngrtfakt' timestamp='1357942776' post='595448448']
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
[/quote]

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 :/

Share this post


Link to post
Share on other sites

Posted

Photoshop ****es me off

Share this post


Link to post
Share on other sites

Posted

Made a Java program to do what I wanted. Forget photoshop! :D

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.