I'm on a virtual machine, and according to this document in the "Cache Storage and Resource Requirements section", if you're on a VPS you should probably limit the threads to two. I am. But before making changes, I checked to see what my settings (via identify -list resource) were:
File Area Memory Map Disk Thread Time
------------------------------------------------------------------------
768 2.0004GiB 1.5003GiB 4.0009GiB 16EiB 4 unlimited
I then placed this in ~/.magick/policy.xml:
<policymap>
<policy domain="resource" name="time" value="60"/>
<policy domain="resource" name="thread" value="2"/>
</policymap>
Then I checked my settings:
File Area Memory Map Disk Thread Time
------------------------------------------------------------------------
768 2.0004GiB 1.5003GiB 4.0009GiB 16EiB 4 60
Howcome the thread isn't getting modified? I just copied and pasted the settings.