Share
Embed
Supersonic Speed with JVMย Args
Demystifying JVM arguments and how they effect Android builds so that you can get the best performance out of your builds. The concepts are greatly impacted by Gradle properties and build caching, therefore this talk discusses them both and how they impact each other.
Jason Pearson
December 07, 2023
Transcript
198 slides
-
Supersonic Speed with JVM Args Dec 7th, 2023 Jason Pearsonโจ
Senior Staff Engineer Formerly Hinge -
CI experience since 2011. Built Android at Hinge, went from
solo dev to 24 Android engineers. Also spent years in backend and fullstack roles across various companies. -
Make it Faster 12 9 6 3 0 Unit Tests
Release R8 UI Tests Unit Tests Release R8 UI tests minutes -
~400 Modules ๐ป 290k lines of Kotlin 24 active contributors
Context Dagger Hilt (KAPT) ๐ก Gradle Kotlin Scripts KSP (except Dagger) -
๐ Automate Building & Publishing โBut why is it taking
so long?โ โฐ -
๐ Automate Building & Publishing ๐ฉ๐ฌ Automate Tests โBut why
is it taking so long?โ โฐ -
๐ Automate Building & Publishing ๐ฉ๐ฌ Automate Tests ๐ Automate
Security โBut why is it taking so long?โ โฐ -
๐ Automate Building & Publishing ๐ฉ๐ฌ Automate Tests ๐ Automate
Security โBut why is it taking so long?โ โฐ -
๐ Automate Building & Publishing ๐ฉ๐ฌ Automate Tests ๐ Automate
Security โฐ ๐ฆ Caching JVM Args ๐ฅท Shadow Jobs Original Problems Scale Problems -
This is reasonable 12 9 6 3 0 Unit Tests
Release R8 UI Tests Unit Tests Release R8 UI tests minutes -
12 9 6 3 0 Unit Tests Release R8 UI
Tests Unit Tests Release R8 UI tests minutes How did we get to this? -
12 9 6 3 0 Unit Tests Release R8 UI
Tests Unit Tests Release R8 UI tests minutes How did we get to this? -
Control 40 30 20 10 0 Partial Cache Hit Cache
Hit Core Change Cache Hit Leaf Change minutes cache save gradle execution gradle configuration cache restore git Docker ๐ฉ๐ฌ Unit Tests on CI -
๐ป Local Support Gradle Caches Build Cache ๐ป ๐ป ๐ป
Configuration Cache Dependency Cache Script Cache Local Support Local Support Local Support -
๐ป Local Support Gradle Caches Build Cache ๐ป ๐ป ๐ป
Configuration Cache Dependency Cache Script Cache Local Support Local Support Local Support -
Gradle Cache directories ~/.gradle โโโ caches โ โโโ 8.1 โ
โโโ 8.2 โ โโโ โฎ โ โโโ buildcacheโ1 โ โโโ jars-9 โ โโโ journal-1 โ โโโ modules-2 โ โโโ transforms-3 โ โโโ โฎ -
Gradle Cache directories ~/.gradle โโโ caches โ โโโ 8.1 โ
โโโ 8.2 โ โโโ โฎ โ โโโ buildcacheโ1 โ โโโ jars-9 โ โโโ journal-1 โ โโโ modules-2 โ โโโ transforms-3 โ โโโ โฎ Dependency Cache -
Gradle Cache directories ~/.gradle โโโ caches โ โโโ 8.1 โ
โโโ 8.2 โ โ โโโ generated-gradle-jars โ โ โโโ kotlin-dsl โ โโโ โฎ โ โโโ buildcacheโ1 โ โโโ jars-9 โ โโโ journal-1 โ โโโ modules-2 โ โโโ transforms-3 โ Dependency Cache Script Cache -
๐ป Local Support Gradle Caches Build Cache ๐ป ๐ป ๐ป
Configuration Cache Dependency Cache Script Cache Local Support Local Support Local Support -
Gradle Caches Build Cache ๐ป Configuration Cache Dependency Cache Script
Cache Local Support ๐ป Local Support Remote Support Remote Support -
Control Cache build dependencies 40 30 20 10 0 Partial
Cache Hit Cache Hit Core Change Cache Hit Leaf Change minutes cache save gradle execution gradle configuration cache restore git Docker -
Control 40 30 20 10 0 Partial Cache Hit Cache
Hit Core Change Cache Hit Leaf Change Cache build dependencies minutes cache save gradle execution gradle configuration cache restore git Docker -
# If you don't turn these on you aren't #
getting any performance wins from # Gradle Build Cache or modularization. org.gradle.caching=true org.gradle.parallel=true gradle.properties -
# Kotlin 1.7+ only # Good reason to upgrade if
you are on # an older version. kotlin.incremental.useClasspathSnapshot =true gradle.properties -
# Incremental compilation with KAPT. # Only if you still
use KAPT. kapt.incremental.apt =true gradle.properties -
# Stop generating BuildConfig Java stubs. # If this is
the last Java in your codebase # you could see a decent performance win. android.enableBuildConfigAsBytecode =true gradle.properties -
# Stop generating BuildConfig files # if you don't use
them. android.defaults.buildfeatures.buildconfig =false gradle.properties -
# Experimental flag for parallelizing # R8 work - only
useful if you have # multiple R8 tasks. android.r8.maxWorkers =2 gradle.properties -
Gradle Properties Other engineers ask me, "Where do you find
these?" github.com/androidx/androidx and other OSS projects -
Control 40 30 20 10 0 Partial Cache Hit Cache
Hit Core Change Cache Hit Leaf Change Gradle Properties minutes cache save gradle execution gradle configuration cache restore git Docker -
Control 40 30 20 10 0 Partial Cache Hit Cache
Hit Core Change Cache Hit Leaf Change minutes cache save gradle execution gradle configuration cache restore git Docker Gradle Properties -
Gradle Caches Build Cache ๐ป Configuration Cache Dependency Cache Script
Cache Local Support ๐ป Local Support Remote Support Remote Support -
Gradle Caches Build Cache ๐ป Configuration Cache Dependency Cache Script
Cache Local Support ๐ป Local Support Remote Support Remote Support -
Gradle Build Cache - Modularize โข Reduce the number of
inputs per task and make them more stable โข Watch Siggiโs talk about graph theory โข Gradle build scans to observe performance -
Gradle Remote Cache โข Do it: https://docs.gradle.com/build-cache-node/ โข 90 Days,
300GB, use validation scripts โข Most local and CI runs will benefit from build cache hits โข Free -
โข Provides support for features beyond remote cache โข Really
helps figure out failures, cache misses, and performance issues across a team โข Looking forward to using test prediction. -
Gradle Caches Build Cache ๐ป Configuration Cache Dependency Cache Script
Cache Local Support ๐ป Local Support Remote Support Remote Support -
Gradle Caches Build Cache ๐ป Configuration Cache Dependency Cache Script
Cache Remote Support Local Support Remote Support Remote Support -
Control 40 30 20 10 0 Partial Cache Hit Cache
Hit Core Change Cache Hit Leaf Change minutes cache save gradle execution gradle configuration cache restore git Docker Gradle Build Cache Optimization -
Control 40 30 20 10 0 Partial Cache Hit Cache
Hit Core Change Cache Hit Leaf Change minutes cache save gradle execution gradle configuration cache restore git Docker Gradle Build Cache Optimization -
โข Yes, 19+ โข 20 and 21 make incremental improvements
to G1GC algorithm Is it worth it to use the latest JDK -
Control JDK 11 -> JDK 19 40 30 20 10
0 Partial Cache Hit Cache Hit Core Change Cache Hit Leaf Change minutes cache save gradle execution gradle configuration cache restore git Docker -
Control 40 30 20 10 0 Partial Cache Hit Cache
Hit Core Change Cache Hit Leaf Change minutes cache save gradle execution gradle configuration cache restore git Docker JDK 11 -> JDK 19 -
Upgrade Tooling โWill version X of dependency Y work on
our project?โ -
๐ฅท Shadow Jobs โWill version X of dependency Y work
on our project?โ -
๐ฅท Shadow Jobs Run nightly checks against your project with
latest snapshots of new versions. โWill version X of dependency Y work on our project?โ Zac Sweers -
๐ฅท Shadow Jobs Run nightly checks against your project with
latest snapshots of new versions. โWill version X of dependency Y work on our project?โ Zac Sweers -
JVM Argument Tuning DISCLAIMER: I am not accountable for any
of these settings. If they donโt work for you there are so many reasons why your setup would handle them differently. -
Garbage Collection Algo Tradeoff Each JVM GC algorithm makes a
choice about what they optimize for and how much. -
Garbage Collection Algo Tradeoff Throughput Footprint Latency Transactions per second
Time spent in GC pauses Rough memory footprint size -
ParallelGC Garbage Collection Algo Tradeoff G1GC โข Optimize for speed
โข Maximum footprint โข Might have longer GC pauses โข Balance throughput โข Lower footprint โข Shorter GC pauses -
ParallelGC Garbage Collection Algo Tradeoff G1GC โข Optimize for speed
โข Maximum footprint โข Might have longer GC pauses โข Balance throughput โข Lower footprint โข Shorter GC pauses Probably safe bet to be stable and fastest for most projects Might be faster for some projects -
ParallelGC Garbage Collection Algo Tradeoff G1GC โข Optimize for speed
โข Maximum footprint โข Might have longer GC pauses โข Balance throughput โข Lower footprint โข Shorter GC pauses โข JDK 20 + 21 improvements! Probably safe bet to be stable and fastest for most projects Might be faster for some projects -
kotlin.daemon.jvm.options When passing arguments, follow these rules: Use the minus
sign - only before the arguments Xmx, XX:MaxMetaspaceSize, and XX:ReservedCodeCacheSize. Separate arguments with commas (,) without spaces. Arguments that come after a space will be used for the Gradle daemon, not for the Kotlin daemon. Kotlin JVM Arguments -
kotlin.daemon.jvm.options When passing arguments, follow these rules: Use the minus
sign - only before the arguments Xmx, XX:MaxMetaspaceSize, and XX:ReservedCodeCacheSize. Separate arguments with commas (,) without spaces. Arguments that come after a space will be used for the Gradle daemon, not for the Kotlin daemon. Kotlin JVM Arguments -
kotlin.daemon.jvm.options When passing arguments, follow these rules: Use the minus
sign - only before the arguments Xmx, XX:MaxMetaspaceSize, and XX:ReservedCodeCacheSize. Separate arguments with commas (,) without spaces. Arguments that come after a space will be used for the Gradle daemon, not for the Kotlin daemon. Kotlin JVM Arguments -
kotlin.daemon.jvmargs You can add the kotlin.daemon.jvmargs property in the gradle.properties
fi le: kotlin.daemon.jvmargs=-Xmx1500m -Xms=500m Kotlin JVM Arguments -
kotlin.daemon.jvmargs You can add the kotlin.daemon.jvmargs property in the gradle.properties
fi le: kotlin.daemon.jvmargs=-Xmx1500m -Xms=500m Using spaces at the beginning will cause all arguments to be ignored Kotlin JVM Arguments -
Xmx (max) JVM Heap Size Xms (min) โข Amount of
memory it takes to compile your biggest task / module. โข For most projects this is going to be your main app moduleโs minification step. โข Somewhere between 80 and 100% of Xmx. โข Heap only grows when GC happens, so increasing it avoids this penalty. -
MaxMetaspaceSize Metaspace CompressedClassSpaceSize โข class & non-class space โข unlimited
by default โข virtual size of compressed classes โข defaults to 1GB -
CompressedOops Metaspace CompressedClassPointers โข Defaults on < 30GB heap โข
Uses 4 fewer bytes โข Restricts memory heap to 32GB โข Available if CompressedOops is on -
What if we turn off CompressedClassSpace + CompressedOops? 20 15
10 5 0 On Off On Off minutes -
Metaspace CompressedOops & unlimited MaxMetaspace is going to be better
for majority of Android projects. -
Metaspace CompressedOops & unlimited MaxMetaspace is going to be better
for majority of Android projects. (so stick with the defaults) -
CodeCache To determine what number you should use, measure via
JVM arg: โXX:+PrintCodeCache -
SoftRefLRUPolicyMSPerMB The number of milliseconds to hold onto soft references
per MB of heap size, default 1000 -
SoftRefLRUPolicyMSPerMB The number of milliseconds to hold onto soft references
per MB of heap size, default 1000 = 2h 16m 32s 8GB Heap @ 1000 MS Policy -
SoftRefLRUPolicyMSPerMB The number of milliseconds to hold onto soft references
per MB of heap size, default 1000 = 2h 16m 32s 8GB Heap @ 1000 MS Policy 8GB Heap @ 10 MS Policy = 0h 1m 22s -
SoftRefLRUPolicyMSPerMB The number of milliseconds to hold onto soft references
per MB of heap size, default 1000 = 2h 16m 32s 8GB Heap @ 1 MS Policy 8GB Heap @ 1000 MS Policy = 0h 0m 8s 8GB Heap @ 10 MS Policy = 0h 1m 22s -
Gradle Max Workers --max-workers The maximum number of active workers
to allow Should probably be number of performance cores, possibly 1-2 less Will not spawn more workers is memory heap requirements cannot be met -
jemalloc / tcmalloc Memory fragmentation slows down builds, use a
better malloc algorithm -
malloc alternatives We saw no speed difference with jemalloc, but
it did notice 10% less memory usage -
malloc alternatives Therefore use jemalloc (or tcmalloc) to be able
to run more daemons in parallel with less memory pressure. -
๐ฅท Shadow Jobs 1. Instrument your build with JVM args
as parameters 2. Run parameterized tests 3. Profit What do we actually pick for JVM args? -
โข GC Algo = It Depends โข SoftRefLRUPolicyMSPerMB = 1
โข CodeCache = 256MB - 512MB โข MaxMetaspace = Some GB or unlimited โข Metaspace = 64MB - 1GB โข Xmx = 4GB - 12GB โข Xms = Xmx โข Max Workers=Performance Cores - 2 What do we actually pick? -
โข jcmp for Metaspace โข โXX:+PrintCodeCache for CodeCache โข Measure
CPU & Memory resource usage, lots of tools available JVM Measurement Tools -
Control JVM Optimizations 40 30 20 10 0 Partial Cache
Hit Cache Hit Core Change Cache Hit Leaf Change minutes cache save gradle execution gradle configuration cache restore git Docker -
Control 40 30 20 10 0 Partial Cache Hit Cache
Hit Core Change Cache Hit Leaf Change minutes cache save gradle execution gradle configuration cache restore git Docker JVM Optimizations -
Control 40 30 20 10 0 Partial Cache Hit Cache
Hit Core Change Cache Hit Leaf Change minutes cache save gradle execution gradle configuration cache restore git Docker JVM Optimizations -
Gradle Caches Build Cache Configuration Cache Dependency Cache Script Cache
Remote Support Remote Support Remote Support ๐ป Local Support -
Gradle Caches Build Cache Configuration Cache Dependency Cache Script Cache
Remote Support Remote Support Remote Support ๐ป Local Support -
Gradle Cache directories ~/.gradle โโโ caches โ โโโ โฎ ~/project
โโโ .gradle โโโ app โโโ build โโโ gradle โโโ โฎ Dependency Cache Script Cache -
Gradle Cache directories ~/project โโโ .gradle โโโ app โโโ build
โโโ gradle โโโ โฎ -
Gradle Cache directories ~/project โโโ .gradle โ โ โ โ
โโโ app โโโ build โโโ gradle โโโ โฎ -
Gradle Cache directories ~/project โโโ .gradle โ โโโ 8.1 โ
โโโ 8.2 โ โโโ โฎ โ โโโ configuration-cache โโโ app โโโ build โโโ gradle โโโ โฎ -
~/project โโโ .gradle โ โโโ 8.1 โ โโโ 8.2 โ
โโโ โฎ โ โโโ configuration-cache โโโ app โโโ build โโโ gradle โโโ โฎ Configuration Cache Gradle Cache directories -
~/.gradle/caches/<< gradle_version >>/generated-gradle-jars ~/.gradle/caches/<< gradle_version >>/kotlin-dsl ~/.gradle/caches/modules-2 .gradle/<< gradle_version >>
.gradle/configuration-cache ci-cache.yml -
As of Gradle 8.1 encryption was added. Asking Gradle support
- configuration cache on CI is unsupported Gradle Configuration Cache on CI -
As of Gradle 8.1 encryption was added. Gradle's response has
been that configuration cache on CI is not supported Gradle Configuration Cache on CI -
As of Gradle 8.1 encryption was added. Gradle's response has
been that configuration cache on CI is not supported. But we persisted anyway... Gradle Configuration Cache on CI -
Gradle Configuration Cache on CI Environment Variable Environment Variables Prefixed
File system Entry File System property Value from custom source 35 1 2007 4 52 5 build/reports/configuration-cache/4tnz..i67j/27o6..b0jl/configuration-cache-report.html We looked at the reports for all inputs -
But despite everything 100% of inputs being consistent we continued
to get an unhelpful error message: Gradle Configuration Cache on CI -
Gradle Configuration Cache on CI Calculating task graph as no
configuration cache is available for tasks -
Gradle Configuration Cache on CI โYou need to cache the
encryption key.โ โ Inaki Villar -
Gradle Configuration Cache on CI Caveat to this method -
you will be caching any secrets used by this build, so either: โข Only use this for builds that do not rely on secrets โข Knowingly store this with the security risk -
Gradle User Home directory ~/.gradle โโโ caches โ โโโ 8.1
โ โ โฆ โ โโโ 8.4 โ โ โโโ cc-keystore โ โ โโโ cache.properties โ โ โโโ cc-keystore.lock โ โ โโโ gradle.keystore โ โโโ โ โโโ buildcacheโ1 โ โโโ jars-9 โ โโโ journal-1 Configuration Cache Encryption -
~/.gradle/caches/<< gradle_version >>/generated-gradle-jars ~/.gradle/caches/<< gradle_version >>/kotlin-dsl ~/.gradle/caches/modules-2 .gradle/<< gradle_version >>
.gradle/configuration-cache ci-cache.yml -
~/.gradle/caches/<< gradle_version >>/generated-gradle-jars ~/.gradle/caches/<< gradle_version >>/kotlin-dsl ~/.gradle/caches/<< gradle_version >>/cc-keystore ~/.gradle/caches/modules-2
.gradle/<< gradle_version >> .gradle/configuration-cache ci-cache.yml -
Gradle Configuration Cache on CI Calculating task graph as no
configuration cache is available for tasks -
unit_tests: docker: - image: circleci/android:api-34-node steps: - run: name: Clean
Gradle Cache command: | find . -type f -name '*.lock' -delete find . -type f -name 'gc.properties' -delete find ~/.gradle -type f -name '*.lock' -delete find ~/.gradle -type f -name 'gc.properties' -delete when: always - save_cache: paths: - ~/.gradle/caches/<< parameters.gradle_version >>/ generated-gradle-jars - ~/.gradle/caches/<< parameters.gradle_version >>/ kotlin-dsl - .gradle/configuration-cache - ~/.gradle/caches/<< parameters.gradle_version >>/ cc-keystore - .gradle/<< parameters.gradle_version >> config.yml -
unit_tests: docker: - image: circleci/android:api-34-node steps: - run: name: Clean
Gradle Cache command: | find . -type f -name '*.lock' -delete find . -type f -name 'gc.properties' -delete find ~/.gradle -type f -name '*.lock' -delete find ~/.gradle -type f -name 'gc.properties' -delete when: always - save_cache: paths: - ~/.gradle/caches/<< parameters.gradle_version >>/ generated-gradle-jars - ~/.gradle/caches/<< parameters.gradle_version >>/ kotlin-dsl - .gradle/configuration-cache - ~/.gradle/caches/<< parameters.gradle_version >>/ cc-keystore - .gradle/<< parameters.gradle_version >> config.yml ๐คฆ -
Gradle Configuration Cache on CI Calculating task graph as configuration
cache cannot be reused because an input to task โ:gradle-plugin:generateExternalPluginSpecBuilders' has changed. -
Gradle Configuration Cache on CI Calculating task graph as configuration
cache cannot be reused because an input to task โ:gradle-plugin:generateExternalPluginSpecBuilders' has changed. -
โGradle has compilation avoidance for non- ABI changes in included
builds, but due to a bug any inline function would cause all build scripts to be recompiled even when there is a non-ABI change.โ - Nicklas Ansman Gradle Configuration Cache on CI -
~/.gradle/caches/<< gradle_version >>/generated-gradle-jars ~/.gradle/caches/<< gradle_version >>/kotlin-dsl ~/.gradle/caches/<< gradle_version >>/cc-keystore ~/.gradle/caches/modules-2
.gradle/<< gradle_version >> .gradle/configuration-cache gradle-plugin/build/pluginDescriptors ci-cache.yml -
Gradle Configuration Cache on CI Could not load the value
of field `patterns` of `org.gradle.configurationcache.serialization.codecs.DirectoryTree Spec` bean found in field `fileSystemInputs` of `org.gradle.configurationcache.fingerprint.ConfigurationCacheFing erprint$WorkInputs` bean found in Gradle runtime. > Failed to instrument class org/jetbrains/kotlin/gradle/tasks/ KotlinCompile$ScriptFilterSpec in ClassLoaderScopeIdentifier.Id{coreAndPlugins:settings[:gradle- plugin]:buildSrc[:gradle-plugin]:root-project[:gradle-plugin] (export)} -
Gradle Configuration Cache on CI Could not load the value
of field `patterns` of `org.gradle.configurationcache.serialization.codecs.DirectoryTree Spec` bean found in field `fileSystemInputs` of `org.gradle.configurationcache.fingerprint.ConfigurationCacheFing erprint$WorkInputs` bean found in Gradle runtime. > Failed to instrument class org/jetbrains/kotlin/gradle/tasks/ KotlinCompile$ScriptFilterSpec in ClassLoaderScopeIdentifier.Id{coreAndPlugins:settings[:gradle- plugin]:buildSrc[:gradle-plugin]:root-project[:gradle-plugin] (export)} -
~/.gradle/caches/<< gradle_version >>/generated-gradle-jars ~/.gradle/caches/<< gradle_version >>/kotlin-dsl ~/.gradle/caches/<< gradle_version >>/cc-keystore ~/.gradle/caches/modules-2
.gradle/<< gradle_version >> .gradle/configuration-cache gradle-plugin/build/pluginDescriptors ci-cache.yml -
~/.gradle/caches/<< gradle_version >>/generated-gradle-jars ~/.gradle/caches/<< gradle_version >>/kotlin-dsl ~/.gradle/caches/<< gradle_version >>/cc-keystore ~/.gradle/caches/modules-2
.gradle/<< gradle_version >> .gradle/configuration-cache gradle-plugin/build ci-cache.yml -
~/.gradle/caches/<< gradle_version >>/generated-gradle-jars ~/.gradle/caches/<< gradle_version >>/kotlin-dsl ~/.gradle/caches/<< gradle_version >>/cc-keystore ~/.gradle/caches/modules-2
~/.gradle/caches/jars-9 ~/.gradle/caches/transforms-3 .gradle/<< gradle_version >> .gradle/configuration-cache gradle-plugin/build ci-cache.yml -
โWow, I was prepared for a faster PR time but
that was blazingโ - Jacob Duron Gradle Configuration Cache on CI -
โI believe its in the interest of Gradle and the
community to support a method to share the configuration cache between machines that doesn't expose build secretsโ - me Gradle Configuration Cache Update -
TLDR; Wait for Gradle 8.6 and a new GitHub Gradle
Build Action Gradle Configuration Cache Update -
Gradle Caches Build Cache Configuration Cache Dependency Cache Script Cache
Remote Support Remote Support Remote Support ๐ป Local Support -
Gradle Caches Build Cache Configuration Cache Dependency Cache Script Cache
Remote Support Remote Support Remote Support Remote Support -
Control Gradle Configuration Cache Reuse 40 30 20 10 0
Partial Cache Hit Cache Hit Core Change Cache Hit Leaf Change minutes cache save gradle execution gradle configuration cache restore git Docker -
Control Gradle Configuration Cache Reuse 40 30 20 10 0
Partial Cache Hit Cache Hit Core Change Cache Hit Leaf Change minutes cache save gradle execution gradle configuration cache restore git Docker -
40 30 20 10 0 Gradle Configuration Cache Reuse Control
Partial Cache Hit Cache Hit Core Change Cache Hit Leaf Change minutes cache save gradle execution gradle configuration cache restore git Docker -
Overhead Cost Optimizations ๐ฆ git clone pulls 400 MB big
images (2.5 GB) Minutes to save cache ~60 seconds to restore cache -
GitHub Actions ๐ฆ pulls run at 200mb/s base images are
cached better cache restore and save operations runs 2-5x faster -
Control Present Day Unit Test Runs 40 30 20 10
0 Partial Cache Hit Cache Hit Core Change Cache Hit Leaf Change minutes cache save gradle execution gradle configuration cache restore git Docker -
40 30 20 10 0 Control Partial Cache Hit Cache
Hit Core Change Cache Hit Leaf Change minutes cache save gradle execution gradle configuration cache restore git Docker Present Day Unit Test Runs -
CI Speed Optimizations Cache Dependencies Cache Build Tasks Cache Configuration
JVM Tuning Compiler Flags ๐ ๐ฆ ๐ฉ -
CI Speed Optimizations Cache Dependencies Cache Build Tasks Cache Configuration
JVM Tuning Compiler Flags ๐ ๐ฆ ๐ฉ โ -
CI Speed Optimizations Cache Dependencies Cache Build Tasks Cache Configuration
JVM Tuning Compiler Flags ๐ ๐ฆ ๐ฉ โ โ -
Metaspace Citations Thomas Stรผfe Blog https://stuefe.de/posts/metaspace/what-is-metaspace/ https://stuefe.de/posts/metaspace/metaspace-architecture/ https://stuefe.de/posts/metaspace/what-is-compressed-class-space/ https://stuefe.de/posts/metaspace/sizing-metaspace/ https://stuefe.de/posts/metaspace/analyze-metaspace-with-jcmd/
Oracle Class Metadata, PermGen and changes to native memory allocation -
Gradle Documentation Gradle Files & Directories https://docs.gradle.org/current/userguide/directory_layout.html Gradle CI Ephemeral
Best Practices https://docs.gradle.org/current/userguide/ dependency_resolution.html#sub:ephemeral-ci-cache Gradle Recommends using Daemons for CI https://docs.gradle.org/current/userguide/ gradle_daemon.html#continuous_integration -
Kotlin JVM Args Documentation New Method https://kotlinlang.org/docs/gradle-compilation-and-caches.html#kotlin- daemon-jvmargs-property Deprecated Method
https://kotlinlang.org/docs/gradle-compilation-and-caches.html#kotlin- daemon-jvm-options-system-property -
JDK Version Documentation JDK Release Notes Summaries for GC Algo
Changes 19 | 20 | 21 JVM SoftReferences Tuning CodeCache