Limiting the time of any ImageMagick command
Posted: 2016-06-09T05:25:01-07:00
Hi,
We are trying to limit the elapsed time of ImageMagick commands, but we are failing in limiting them.
We have used the following link as reference:
http://www.imagemagick.org/script/resources.php
With reference to the above link we included the below line in policy.xml file(For limiting the time of ImageMagick command to 20 secs).
<policy domain="resource" name="time" value="20"/>
And even defined an environment variable "MAGICK_TIME_LIMIT" as 20
But ImageMagick command is not exiting even after 20 secs also.
Machine Details:
Linux 2.6.32-279.9.1.el6.x86_64 #1 x86_64 x86_64 x86_64 GNU/Linux
Red Hat Enterprise Linux Server release 6.3
Please let us know if we miss any configuration.
We are trying to limit the elapsed time of ImageMagick commands, but we are failing in limiting them.
We have used the following link as reference:
http://www.imagemagick.org/script/resources.php
With reference to the above link we included the below line in policy.xml file(For limiting the time of ImageMagick command to 20 secs).
<policy domain="resource" name="time" value="20"/>
And even defined an environment variable "MAGICK_TIME_LIMIT" as 20
But ImageMagick command is not exiting even after 20 secs also.
Machine Details:
Linux 2.6.32-279.9.1.el6.x86_64 #1 x86_64 x86_64 x86_64 GNU/Linux
Red Hat Enterprise Linux Server release 6.3
Please let us know if we miss any configuration.