jodal / pykka

🌀 Pykka makes it easier to build concurrent Python applications.

Home Page:https://pykka.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

can't start new thread

wylyeak opened this issue · comments

image

every actor is need call self.stop() ?

when i call self.stop() in every actor, there has no exception raised。。

image

how can i controll the actor numbers?

thanks!

Actor's don't stop by themselves or if they're out of work, so if you never call .stop() on an actor, they will accumulate and you'll eventually hit som OS limits to how many threads you can create.

I see that you create new actors in a loop and don't keep any references to the started actors. This looks suspiciously like you're creating lots of threads and never clean them up.