Hundreds of RxCachedThreadS
See original GitHub issueHi thank you very much for this amazing project. Our product is using this framework and we have delivered into the market with great success.
However we have observed considerable amount of Exception among our users.
OutOfMemoryError: pthread_create (1040KB stack) failed: Try again
On some of our test devices, we found that we get 200+ RxCachedThreadS. listed as following
android_device:/ $ ps -t 26731 |grep RxCachedThread| wc -l
201
My opinion is those cached threads is way too much. I found a relevant article here. I’ve made sure every Observable.create
calls the onComplete
method. But the issue persists.
Can you please provide some suggestions which orientation shall we look into?
We are using RxJava:2.1.8 and RxAndroid:2.0.1
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:10 (3 by maintainers)
Top Results From Across the Web
Schedulers.io creates hundreds of RxCachedThreadSchedulers
I use RxJava in my android app and it ran into OutOfMemoryError several times. I checked it with Device Manager and I just...
Read more >IDE Close - Save changes dialogue ignores Y and N - Processing ...
When you close the IDE it may prompt you to save changes - with Yes and No buttons. The Y and N are...
Read more >xbps-src update-bulk on foreign distro - Void-Linux/Void-Packages
Hundreds of RxCachedThreadS, 1, 2019-10-25, 2022-07-13. [Turing Data Story] Building a simple web scraper, 0, 2021-03-26, 2022-08-14.
Read more >Hundreds of RxCachedThreadS - ReactiveX/RxAndroid
On some of our test devices, we found that we get 200+ RxCachedThreadS. listed as following. android_device:/ $ ps -t 26731 |grep RxCachedThread|...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
It seems like a thread is
wait()
for another thread tonotify()
forever.Is there options to print all the observeOn and subscrieOn threads?
how to solve this question?