Quantcast
Channel: magick Discussions Rss Feed
Viewing all articles
Browse latest Browse all 3693

New Post: How to limit number of CPU cores used by magick.net ?

$
0
0
Hi,

While trying to batch resize a lot of images, the CPU is at 95%, witch is great, but not on a system shared with a IIS web server... So, is there a way to limit the number of CPU cores used ?

I tried to set the "MAGICK_THREAD_LIMIT=X" environment variable to limit the number of CPU cores used by Magick.Net but it doesn't seems to work.

I also tried ImageMagick.ResourceLimits.Thread = 2; But it doesn't work too..

Is there a workaround, or a standard way to do that ? ( Thread.Sleep() is not a workaround :)

Viewing all articles
Browse latest Browse all 3693

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>