Open akeating opened 9 years ago
Thanks for the report! There is indeed strange behavior observed in OS X with Node 0.12.0, which is why I disabled its use in EtherCalc at https://github.com/audreyt/ethercalc/blob/master/src/sc.ls#L39 — I would :heart: if someone more versed in C++ can look into this.
Hi @audreyt thanks for the update. I am also seeing the same issue using both node 0.11.14 and 0.10.35, following the steps listed above. The latter increases by 2 threads per refresh instead of 5. Interestingly, two Workers are instantiated for each request.
That is normal (I think), as one can destroy/terminate the two workers at end of request.
Hi, I am running the example code listed but with fibo(30) instead of fibo(40) and using a valid port number:
Steps to reproduce:
Although this Worker api is not explicitly configured using a thread pool, I do expect the thread count to start off with some kind of default pool size and remain there. Both the size of the thread count increase is unexpected and as is the behavior of a never-ending increase in count.
This is just a basic example that serves to show the api; however this behavior really precludes the use of this lib in a long-lived application. It looks like there is fine-grained control over threading using some of the other apis. I am interested to see a better usage of the Worker api, that prevents this behavior using the steps listed, together with an explanation for what I am observing.
Thanks!