Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Starting a blocking GC ObjectsAllocated

Tags:

android

I programming an app on Android Studio 2.3, which uses SQLite Databases and uploads data via an HTTP connection. Since I installed Android O on my Nexus 6P I have a problem.

What's my problem

I get the following information message every second when my app is running.

05-19 20:20:43.560 20029-20036/net.example.app I/chatty: uid=10378(u0_a378) JDWP identical 8 lines
05-19 20:20:44.059 20029-20036/net.example.app I/zygote64: Starting a blocking GC ObjectsAllocated

So this continues in an endless log. I really don't know what it can be. I also noticed that the device will get hot.

Now my question, does anyone has the same problem or is there a solution?

Please feel free to ask for some code.

like image 845
Julian Schmuckli Avatar asked May 19 '17 18:05

Julian Schmuckli


1 Answers

It's harmless. It's an extra log message that was added to the GC in Android O as part of the solution to a potential deadlock. Here's the commit in Android ART GC that causes it.

The reason you're seeing it is because the "Memory" monitor tab in Android Studio polls the count of objects allocated periodically (quite frequently) in order to display the memory graph.

Workaround: disable the Android Studio memory monitor.

like image 139
akent Avatar answered Oct 29 '22 19:10

akent