Muffinresearch Labs by Stuart Colville

Large Temporary Files Left Behind by ImageMagick | Comments (0)

Posted in Code, performance on 18th January 2009, 4:40 pm by Stuart

Recently since moving the CSS Sprite Generator to a new server we’ve had a couple of cases where the site has stopped working due to running out of disk-space.

The cause was due to some epic temporary files being left behind by ImageMagick:

-rw-------  2.7G Nov  1 10:25 magick-XX27JoRr
-rw-------  3.8G Nov  1 08:49 magick-XX3Ta6P6
-rw-------  1.7G Nov  1 07:22 magick-XX8uxqCS
-rw-------  3.8G Nov  1 08:54 magick-XXzm6nUD

I decided to up the max-execution_time in php.ini as I’d seem some comments that if the processes interacting with imagick are interrupted it can cause the temporary files to not be cleaned up.

max_execution_time = 120

In our case we’re using the imagick library for PHP, but it’s worth bearing in mind that this problem could potentially occur with any other interface to the ImageMagick libaries.

Since doing this, the problem has not re-appeared.

Post Tools

Comments: Add yours







XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>



Using Loggerhead with mod_wsgi|(0)

Here’s a post I wrote over on the Project Fondue Blog about our use of Loggerhead with mod_wsgi under Apache. Loggerhead is the rather nice branch viewer for bazaar branches as used on Launchpad.net.

If you’re not already subscribed to the Project Fondue blog feed then I can recommend it, as there should be some interesting posts coming out of there in the coming months (yes I’m unashamedly biased!).

Ubuntu: Turn off changing workspace with mouse wheel|(1)

I found the changing with the workspace with the mouse wheel really annoying. To disable it go to System => Preferences => CompizConfig (available if the compizconfig-settings-manager package is installed) and uncheck “Viewport Switcher” which is under the “Desktop” heading.

Photos on Flickr

© Copyright 2004-10 Stuart Colville, all rights reserved. May contain traces of Muffin. Powered by WordPress. Hosting by Slicehost.com This page was baked in 0.632s.