blog dot rufosanchez dot com

If you see me, tell me to get back to work. 
« Back to blog

Keep Paperclip from crashing your server...

...with three simple environment variables:

These environment variables tell ImageMagick to use far less RAM when performing image operations on large images - it'll continue to work fine with big images, it will just be slower as it will use mmap-ed scratch (not swap!) space. This is probably about right for a 512MB slice on SliceHost, but you could tune up for larger servers. (See the environment variable section of ImageMagick's configuration resource page for more technical details.)

Apply to production.rb, commit, deploy, and relax.

Loading mentions Retweet

Comments (1)

Sep 17, 2009
Chris Horn said...
I like this. I like everything about it.

Leave a comment...

 
To leave a comment on this posterous, please login by clicking one of the following.
Posterous-login     twitter