---
title: "Tuning Android build nodes for maximum throughput"
description: "Wealthfront's Android team tuned Gradle on m7i.8xlarge EC2 Jenkins nodes (32 cores, 128GB) by bounding memory across nested layers: daemon jvmargs, org.gradle.workers.max, test-task maxHeapSize, maxParallelForks and Jenkins executors, whose product must fit in RAM with headroom for the daemon."
url: "https://swe.quest/articles/tuning-android-build-nodes-for-maximum-throughput-02474cc4edd4bf99"
canonical: "https://eng.wealthfront.com/2026/06/25/tuning-android-build-nodes-for-maximum-throughput/"
source: "Wealthfront Engineering"
published: "2026-06-25"
difficulty: "medium"
kind: "Case study"
reading_minutes: 6
tags: ["ci-cd","build-systems","mobile","performance","jvm"]
---

# Tuning Android build nodes for maximum throughput

A post on [Wealthfront Engineering](https://swe.quest/sources/wealthfront.md), published 2026-06-25, 6 min read, Case study. Original: [https://eng.wealthfront.com/2026/06/25/tuning-android-build-nodes-for-maximum-throughput/](https://eng.wealthfront.com/2026/06/25/tuning-android-build-nodes-for-maximum-throughput/)

## Summary

Wealthfront's Android team tuned Gradle on m7i.8xlarge EC2 Jenkins nodes (32 cores, 128GB) by bounding memory across nested layers: daemon jvmargs, org.gradle.workers.max, test-task maxHeapSize, maxParallelForks and Jenkins executors, whose product must fit in RAM with headroom for the daemon. They use single-use daemons on CI for build isolation and lower memory overhead, and cap workers at max(4, cores/2) because the default of one worker per core caused memory issues. Going from 4 to 8 workers improved unit-test build time, but 8 to 16 changed almost nothing since parallelism is limited by project modularization. Fixed constraints are Xmx10g for Android Lint and 4g test heaps.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [CI/CD](https://swe.quest/tags/ci-cd.md) (Reliability & operations)
- [Build systems](https://swe.quest/tags/build-systems.md) (Engineering practices)
- [Mobile](https://swe.quest/tags/mobile.md) (Web & mobile)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)
- [Java & JVM](https://swe.quest/tags/jvm.md) (Languages)

## Prerequisites

- Gradle basics
- JVM heap settings ([easy posts on Java & JVM](https://swe.quest/tags/jvm.md?difficulty=easy))
- Jenkins CI ([easy posts on CI/CD](https://swe.quest/tags/ci-cd.md?difficulty=easy))

## Keywords

Gradle, Android Gradle plugin, Jenkins, EC2 m7i.8xlarge, Android Lint, Chef

## Related posts

- [The Sentry Android SDK is now 20-30% faster!](https://swe.quest/articles/the-sentry-android-sdk-is-now-20-30-faster-c43bd999f6f96999.md): Sentry · 2026-10-20 · Medium · 4 min read · Mobile, Performance engineering, Java & JVM
  Sentry's Android SDK init time dropped 20-30% between versions 8.43.0 and 8.54.0, alongside reduced memory allocation, fixed leaks and up to 10% less background CPU.
- [Counting to 3 with a new builder processing 50M+ monthly builds](https://swe.quest/articles/counting-to-3-with-a-new-builder-processing-50m-monthly-builds-47ae6a690cb417f7.md): Railway · 2026-05-14 · Medium · 8 min read · CI/CD, Virtualization, Build systems, Scaling, Linux
  Railway replaced its docker-buildx-on-GCP-VMs build system with Builder v3: 256-vCPU bare-metal hosts split into eight 32-vCPU microVM build cells running buildkitd, scheduled with a 1-of-3 ring to keep BuildKit caches warm, now peaking at 66,000 builds per hour.
- [Mobile Developer Experience at Slack](https://swe.quest/articles/mobile-developer-experience-at-slack-f2b2b79d74a881fd.md): Slack Engineering · 2022-10-12 · Medium · 14 min read · Developer productivity, Mobile, CI/CD, Testing, Build systems
  A dedicated mobile Developer Experience team grew from 3 to 8 engineers and cut CI feedback time and failure rates by targeting the pain points that surveys, NPS and metrics like time to merge showed hurt developers most. iOS test time fell from about 50 minutes to an average of 9 by moving from Xcodebuild to Bazel with disk caching and bazel-diff, so only affected targets are tested.
- [Accelerate Your Docker Builds Using AWS CodeBuild and Docker Build Cloud](https://swe.quest/articles/accelerate-your-docker-builds-using-aws-codebuild-and-docker-build-cloud-cf566617782de575.md): Docker · 2024-12-18 · Medium · 8 min read · CI/CD, Containers, Build systems, Cloud platforms
  Offloading container image builds from AWS CodeBuild to Docker Build Cloud addresses three common CI bottlenecks: undersized build machines, no persistent layer cache in clean CI environments, and slow emulated multi-architecture builds.
- [Deploying to production in \<5m with our hosted container builder](https://swe.quest/articles/deploying-to-production-in-5m-with-our-hosted-container-builder-ca80279668d29e71.md): incident.io · 2021-11-18 · Medium · 9 min read · CI/CD, Containers, Build systems, Developer productivity, Caching
  incident.io cut Docker image build times from an inconsistent 3–10+ minutes back to under 2 minutes by replacing CircleCI's remote Docker and Docker Layer Caching with a permanently running GCP c2-standard-8 builder with a 500GB SSD.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
