can i embed to use IM in multi threaded server ?

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
umen
Posts: 8
Joined: 2012-06-27T06:49:24-07:00
Authentication code: 13

can i embed to use IM in multi threaded server ?

Post by umen » 2018-05-09T05:07:53-07:00

Hello all
i want to use image magic in multi threaded server to be able to invoke IM service in each incoming thread
is there any best practice for this ? does anybody did it and can share how to start to implement it ?
Thanks !

snibgo
Posts: 10551
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: can i embed to use IM in multi threaded server ?

Post by snibgo » 2018-05-09T16:28:14-07:00

The main consideration is that IM is by default greedy, taking all the threads and memory and disk it can. If you run multiple threads with IM in each, you will want to prevent it from multithreading, eg by editing policy.xml. You might also want to restrict usage of memory etc.
snibgo's IM pages: im.snibgo.com

Post Reply