Limiting the number of threads in the deferred pool

15 views
Skip to first unread message

Arindam Mukherjee

unread,
Jul 16, 2016, 10:08:37 PM7/16/16
to EventMachine
I noticed that if we spawn even a single deferred task using EM.defer, twenty additional threads get spawned by default. Is there a way to limit this number initially to a lower value and grow only if more deferred tasks are created.

Thanks,
Arindam

James Tucker

unread,
Jul 16, 2016, 10:12:15 PM7/16/16
to eventm...@googlegroups.com
You can set `EventMachine.threadpool_size` before running any threads.

There is no mechanism implemented for dynamic growth.

--
You received this message because you are subscribed to the Google Groups "EventMachine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to eventmachine...@googlegroups.com.
To post to this group, send email to eventm...@googlegroups.com.
Visit this group at https://groups.google.com/group/eventmachine.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages