Page 1 of 1

can i embed to use IM in multi threaded server ?

Posted: 2018-05-09T05:07:53-07:00
by umen
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 !

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

Posted: 2018-05-09T16:28:14-07:00
by snibgo
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.