How to increase heap size?
zpdpnn opened this issue · 1 comments
Hello,
I am trying the doorbell example with raspberry pi 3. The app can only use 11 to 12M memory and it takes more than 3 minutes to show the annotation results.
The log shows that the app hangs up due to gc. Please check the log below:
Could you please suggest how to increate heap size? I have tried android:largeHeap="true" and it doesn't work.
Thanks.
09-11 12:15:00.328 19991-19998/com.example.androidthings.doorbell W/art: Suspending all threads took: 20.589ms
09-11 12:15:14.435 19991-19998/com.example.androidthings.doorbell W/art: Suspending all threads took: 21.605ms
09-11 12:16:12.854 19991-20002/com.example.androidthings.doorbell W/art: Suspending all threads took: 7.349ms
09-11 12:16:12.903 19991-20002/com.example.androidthings.doorbell I/art: Background sticky concurrent mark sweep GC freed 129287(3MB) AllocSpace objects, 0(0B) LOS objects, 33% free, 7MB/11MB, paused 9.014ms total 69.787ms
Hi,
I am having a similar problem.
For me it looks like that android things does not allow more than 16M of memory to be given to the application, even if there is more 1 GB of memory available.
I tried different settings and what I have seen normally the available memory is defined by setting different screen resolutions, but this does not really apply to this application.