Skip to content

How to increase heap size? #13

@zpdpnn

Description

@zpdpnn

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions