New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Blocking exhausts Native threads #845
Comments
We would like to provide a pleasant, safe out of the box experience that voids these types of issues. It seems like tweaking defaults to the blocking thread pool is warranted... /cc @Kaishh |
Note, default |
So, the real cause of this error was generation of a new scheduled thread pool on
What we could do to prevent the same mistake is to make the |
Actually, the problem is more plainly stated as: |
Oops, I forgot |
Fixed for |
We have ran into an issue while load testing an implementation of our system that uses ZIO
1.0-RC4
where at the end of a long run we start failing because ofOutOfMemoryError
s, which seem to report happening when trying to create a thread in theblocking
thread pool.Analysis seems to point to the blocking pool not reusing threads and us getting into a situation where the observed behavior of the
Blocking
pool seems to be equivalent to callingNewThread
while under load.I suggest 2 courses of action:
Blocking
instance that is just like theBlocking.Live
instance, but with the ability to adjust thekeepAliveTime
,maximumPoolSize
, andcorePoolSize
these are all options a user might want to drive from configuration for example.Blocking
. Consider whether it actually does make sense to set themaxPoolSize
toInt.MaxValue
The text was updated successfully, but these errors were encountered: