Wikimedia Developer Support

[MediaWiki-l] MediaWiki ImageMagick tmp file storage problem


#1

I upgraded teflpedia.com from MW1.22.2 to MW1.31.1 last week.

A few days later I got a warning that my shared hosting account was
running out of storage. It had ballooned by 2GB and was hitting it's
limit.

The increase was .cagefs/tmp/magick-* files piling up. So I Googled
that and read that those may be ImageMagick dump files from
ImageMagick failing to complete stuff.

So I visited my Special:ListFiles page. Then I again checked
.cagefs/tmp/ and found more magick-* files, like magick-rsYwKaSU 62MB
each, piled in there. I removed them again.

I have mitigated the problem by setting $wgMaxShellMemory = 300000; in
my LocalSettings.php. I don't know why this mitigates it, but it seems
to. It is a setting that had been working in my MW1.22.2 for years. It
seems to work on my shared webhosting server. The default value in
DefaultSettings.php -- $wgMaxShellMemory = 307200 -- causes this
problem for me. Is it too high for my shared webhosting environment?
It seems to be what was causing the problem. I don't know why. Setting
it too low causes the problem too, but 300000 (300MB) has worked for
me for years on this webhost. So I'll leave that set in my
LocalSettings.php with a note to keep an eye on it.

There are some notes from years past on this talk page:
https://www.mediawiki.org/wiki/Manual_talk:$wgMaxShellMemory

If you have clue or suggestions about this, please let us know.

Thanks!

Roger
teflpedia.org
hosted on Dathorn.com shared webhosting