I was profiling the memory of my Android app via the Android Studio memory monitor (no crashes, just checking) and noticed that it keeps growing until about 25MB until GC collection reduces it to 16MB, and then the same things happens again and again (see image link below).
I decided to remove absolutely all method calls, and leave out the main activity (the one and only of my app) completely empty (i.e. onPause, onResume have no logic at all), and my app is just a blank white screen, and yet I am seeing this heap memory constant growth for some weird reason. Does anybody have an idea what's going on, or how can I further investigate this? Android memory usage <http://i.stack.imgur.com/njJWF.png> As I mentioned above, I have cleared everything, deleted all files and resources I had. Currently my app looks like this: build.gradle: apply plugin: 'com.android.application' android { compileSdkVersion 23 buildToolsVersion "23.0.2" defaultConfig { applicationId "com.wow.memorytest" minSdkVersion 16 targetSdkVersion 23 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) testCompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:23.4.0' compile 'com.android.support:support-v4:23.4.0' } My AndroidManifest.xml: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.wow.memorytest"> <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:theme="@android:style/Theme.NoTitleBar.Fullscreen"> <activity android:name="com.wow.memorytest.MainActivity" android:label="@string/app_name" android:screenOrientation="portrait" android:theme="@style/AppTheme.NoActionBar"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> </application> </manifest> MainActivity.java package com.wow.memorytest; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main_activity); } } And this still produces those constant allocation at about every 5 seconds. I have no idea how to further investigate this, I quickly compared two heap dumps but, I don't really see any obvious problem. Please let me know if you could help, or you'd need more information to help answer this question. Thanks a lot, Momchil -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/bf363ca8-3904-420c-b049-27537ef29ec1%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

