ImageMagick is slow

ImageMagick tries to use all available cores. This causes significant waste of resources due to process switching when running inside LVE with number of available cores is less then number of total cores on the server.

To fix the issue, limit the number of threads to the available processors to 1. This can be done by editing config.xml & policy.xml files

/usr/local/lib/ImageMagick-[version]/config/policy.xml
/usr/local/lib/ImageMagick-[version]/config/config.xml 

Setting:

Leave a Reply

Your email address will not be published. Required fields are marked *