1. Understanding RAM PSS (Proportional Set Size) in dumpsys meminfo
When evaluating an Android application's memory consumption, developers often look only at the Java/Kotlin managed heap inside Android Studio Profiler. However, the Android kernel's user-space Low Memory Killer daemon (`lmkd`) decides which processes to terminate based on total physical RAM pressure across the entire process address space—including native C/C++ heap, graphics buffers, `.so` code pages, and WebView processes.
Android measures this holistic footprint using three metrics: Resident Set Size (RSS, which overcounts shared system libraries like `libc.so` and `framework.jar`), Unique Set Size (USS, strictly private pages), and Proportional Set Size (PSS). PSS adds your process's private memory to its exact proportional fraction (`1/N`) of shared memory pages mapped across `N` processes.
Running `adb shell dumpsys meminfo com.example.app` on a physical device prints a complete tabular breakdown of `Dalvik Heap`, `Native Heap`, `Graphics`, `Code`, `Stack`, and `TOTAL PSS` in kilobytes—giving you the exact number the OS uses to score your app's memory weight.
| Memory Region in dumpsys meminfo | What Lives Here | Typical Healthy Indie App Range | Warning Sign on 4 GB RAM Handsets |
|---|---|---|---|
| Java / Dalvik (ART) Heap | Kotlin/Java objects, View trees, ViewModels | 25 MB – 85 MB | >160 MB (risks `java.lang.OutOfMemoryError`) |
| Native Heap | C/C++ malloc, Flutter/Hermes engine, SQLite | 30 MB – 110 MB | >220 MB (unbounded native growth) |
| Graphics (GL / Vulkan / Gralloc) | Decoded bitmaps, GPU textures, SurfaceViews | 20 MB – 90 MB | >180 MB (unscaled 4K images in lists) |
| TOTAL PSS | Private memory + proportional shared pages | 90 MB – 250 MB | >400 MB (triggers `lmkd` kills on budget devices) |
2. Why Budget 4 GB RAM Smartphones Expose Crashes Flagship Phones Miss
Most independent Android developers build and test on high-end workstations or flagship phones like a Pixel 8 Pro or Galaxy S24 Ultra equipped with 12 GB of LPDDR5X RAM and a `512 MB` ART heap ceiling. On such hardware, an app that carelessly decodes ten raw `4000x3000` camera JPEGs into `ARGB_8888` bitmaps consumes 480 MB of graphics memory without crashing.
Now deploy that exact `.aab` to a popular entry-level smartphone such as a Samsung Galaxy A05s or Redmi 13C with 4 GB of total system RAM. After the Android 14 OS kernel, SystemUI, Google Play Services, and the OEM launcher claim 2.7 GB, less than 1.1 GB remains for foreground apps and disk page cache.
As soon as a human closed tester on a 4 GB handset scrolls through your unoptimized image feed or opens an embedded WebView + camera flow, `TOTAL PSS` surges past 450 MB, and either ART throws `OutOfMemoryError` or `lmkd` kills your process silently—registering a user-perceived crash in Android Vitals.
3. Measuring UI Frame Jank and RenderThread Stutter via dumpsys gfxinfo
Smooth visual responsiveness is the second pillar of Android Vitals performance telemetry. On a standard 60Hz display, your application has exactly `16.67 milliseconds` (or `8.33 milliseconds` on a 120Hz display) to process input, execute animations, measure and lay out views on the UI thread, sync the DisplayList to the `RenderThread`, and issue OpenGL/Vulkan draw calls to the GPU.
Whenever a frame takes longer than 16.67ms to reach `SwapBuffers`, the display repeats the previous frame—a visual stutter known as UI jank. If a single frame stalls past `700 milliseconds`, Google Play Android Vitals classifies it as a Frozen Frame, which triggers a bad behavior alert when frozen frames exceed 0.10% of daily rendered frames.
By executing `adb shell dumpsys gfxinfo <package> reset` before a user flow and `adb shell dumpsys gfxinfo <package> framestats` immediately afterward on a physical device, you obtain the exact count of `Total frames rendered`, `Janky frames`, and 50th/90th/95th/99th percentile frame durations.
PKG="com.example.indieapp"
# 1. Reset frame counters before interaction
adb shell dumpsys gfxinfo "$PKG" reset
# 2. Simulate typical vertical feed scroll & screen transition on physical device
adb shell input swipe 540 1600 540 400 350
adb shell input swipe 540 1600 540 400 350
# 3. Capture RAM PSS (in KB) and Frame Jank summary
adb shell dumpsys meminfo "$PKG" | grep -E "TOTAL PSS:|Native Heap:|Dalvik Heap:|Graphics:"
adb shell dumpsys gfxinfo "$PKG" | grep -E "Total frames rendered:|Janky frames:|90th percentile:|95th percentile:|99th percentile:"
4. Eliminating Cold-Start Frozen Frames and Scroll Jank Across Frameworks
When `dumpsys gfxinfo` reveals a high janky frame percentage (>10% on a physical handset), inspect the `PROFILEDATA` CSV rows to see which pipeline stage exceeded the 16.67ms budget. If `IssueDrawCommandsStart - Vsync` is high, work on the main UI thread (inflate/measure/layout or JSON parsing) is blocking rendering; if `SwapBuffers - IssueDrawCommandsStart` is high, GPU overdraw or shader compilation is the bottleneck.
In Jetpack Compose, jank during list scrolling most often occurs when unstable lambda parameters or un-keyed `LazyColumn` items force full-subtree recomposition on every scroll pixel, or when developers run unprofiled debug builds without Baseline Profiles enabled.
In Flutter, make sure your release `.aab` compiles with Impeller enabled (default on Android in modern Flutter releases), lifting runtime shader compilation stutter. In React Native and Expo, replace legacy `ScrollView` lists with `FlashList` or `FlatList` configured with fixed `getItemLayout` dimensions.
- Jetpack Compose: Add stable `key = { it.id }` to every `LazyColumn` / `LazyRow` and include Jetpack `androidx.profileinstaller` Baseline Profiles.
- Flutter: Verify Impeller rendering engine is active and avoid synchronous `jsonDecode()` of large responses on the root UI isolate.
- React Native / Expo: Enable Hermes bytecode compilation, New Architecture synchronous layouts, and memoized list row components.
5. How GOOtester's Physical-Device ADB QA Lab Captures Hardware Telemetry
During a GOOtester campaign, your app can be evaluated on real physical Android hardware connected via USB to our isolated QA host node. Unlike cloud emulator screenshots that tell you nothing about real silicon memory pressure, our hardware daemon executes a structured ADB telemetry pass on a real consumer device (such as a Samsung Galaxy A05s).
The hardware runner installs your release build cleanly, verifies package launch, drives basic UI transitions, polls `dumpsys meminfo` to compute exact `ram_pss_mb`, parses `dumpsys gfxinfo` to record `total_frames`, `janky_frames`, and `jank_percent`, checks `logcat` for fatal exceptions, and captures a real display framebuffer screenshot.
All metrics are persisted directly to your campaign's telemetry record and surfaced in your developer dashboard alongside your human tester opt-in progress—giving you immediate visibility into whether an update introduced a memory regression or frame-time spike.
- Deterministic Clean Install & Cold-Start Probe: The physical device runner verifies your package launches cleanly to a foreground Activity without native linker or permissions crashes.
- Live RAM PSS & Frame Histogram Extraction: Exact `TOTAL PSS` (converted to MB) and `gfxinfo` janky frame ratios are sampled directly from the physical kernel and SurfaceFlinger.
- Cryptographically Signed Evidence Packet Export: Your final Evidence Report bundles the physical hardware model, Android OS version, RAM PSS, jank percentage, and zero-crash status.
6. Presenting Physical Hardware Benchmarks in Your Production Access Application
When you fill out the Google Play Production Access questionnaire at the conclusion of your 14-day closed test, specificity separates instant approvals from rejections. Rather than writing 'We tested the app and it works great,' cite your verified hardware metrics.
For example, you can write: 'Alongside 14 consecutive days of testing across our human tester cohort, we profiled release versionCode 4 on physical Android 14 hardware (Samsung Galaxy A05s), verifying a peak RAM PSS footprint of 138.4 MB, a UI jank ratio under 4.2% across 420 rendered frames, and 0.00% crashes or ANRs.'
Including concrete engineering measurements proves beyond doubt that your closed testing process was rigorous, methodical, and production-ready.
Actionable Pre-Submission Verification Checklist
- Run `adb shell dumpsys meminfo <package>` after navigating through all major screens to confirm `TOTAL PSS` stays well below 300 MB.
- Downsample all user-uploaded photos and network images to match target view dimensions before decoding bitmaps into memory.
- Reset and dump `adb shell dumpsys gfxinfo <package> framestats` during fast list scrolling to verify 90th-percentile frame times stay under 16.67ms.
- Always benchmark UI frame jank on a release/profile build with R8/Baseline Profiles or AOT compilation enabled—never judge FPS on a debug build.
- Review your GOOtester Physical-Device ADB QA snapshot on a 4 GB RAM handset to ensure zero Low Memory Killer (`lmkd`) terminations.
- Include your verified physical-device RAM PSS (MB) and frame jank percentage in your Production Access application narrative.
Frequently Asked Questions
What is a healthy Total RAM PSS number for a standard Android app during closed testing?
For a typical utility, SaaS, content, or e-commerce Android app (built with Kotlin, Flutter, or React Native/Expo), a healthy steady-state Total RAM PSS ranges between 90 MB and 240 MB. For 2D/3D Unity or Godot games, keeping Total RAM PSS under 450–550 MB prevents kernel Low Memory Killer terminations on budget 4 GB RAM devices.
Why does dumpsys meminfo show high Graphics or Native Heap memory when my Java heap is tiny?
Modern Android versions allocate decoded `Bitmap` pixel buffers, hardware-accelerated Canvas layers, WebView DOM trees, and Flutter/React Native engine objects in native memory or gralloc graphics buffers outside the managed Java/ART heap. They do not appear in simple Java heap dumps, which is why `TOTAL PSS` in `dumpsys meminfo` is essential.
What percentage of janky frames in dumpsys gfxinfo is considered acceptable by Android Vitals?
Google Play Android Vitals flags a session as having excessive slow frames if more than 50% of rendered frames exceed 16.67ms (on 60Hz). However, for a smooth user experience and strong Production Access evidence, aim for under 8%–10% janky frames during scrolling and 0 frozen frames (>700ms).
Can I run dumpsys meminfo and dumpsys gfxinfo on a release .aab build that is not debuggable?
Yes! Both `adb shell dumpsys meminfo <package>` and `adb shell dumpsys gfxinfo <package>` work on signed, non-debuggable release builds installed on a USB-debugging-enabled physical device, allowing you to benchmark the exact production binary your closed testers receive.