-
Notifications
You must be signed in to change notification settings - Fork 133
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
How to increase heap size? #13
Comments
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. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
The text was updated successfully, but these errors were encountered: