diff options
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/android/java/com/google/devtools/build/android/BUILD | 4 | ||||
-rw-r--r-- | src/tools/android/java/com/google/devtools/build/android/BUILD.tools | 12 |
2 files changed, 16 insertions, 0 deletions
diff --git a/src/tools/android/java/com/google/devtools/build/android/BUILD b/src/tools/android/java/com/google/devtools/build/android/BUILD index 6bf42f53e3..d563c772df 100644 --- a/src/tools/android/java/com/google/devtools/build/android/BUILD +++ b/src/tools/android/java/com/google/devtools/build/android/BUILD @@ -40,6 +40,10 @@ java_binary( java_binary( name = "ZipFilterAction", + # Memory consumption of SingleJar is about 250 bytes per entry in the output file. Unfortunately, + # the JVM tends to kill the process with an OOM long before we're at the limit. In the most + # recent example, 400 MB of memory was enough for about 500,000 entries. + jvm_flags = ["-Xmx1600m"], main_class = "com.google.devtools.build.android.ZipFilterAction", visibility = ["//visibility:private"], runtime_deps = [":android_builder_lib"], diff --git a/src/tools/android/java/com/google/devtools/build/android/BUILD.tools b/src/tools/android/java/com/google/devtools/build/android/BUILD.tools index f0f858b6db..26b66d2496 100644 --- a/src/tools/android/java/com/google/devtools/build/android/BUILD.tools +++ b/src/tools/android/java/com/google/devtools/build/android/BUILD.tools @@ -17,3 +17,15 @@ java_binary( ":all_android_tools", ], ) + +java_binary( + name = "ZipFilterAction", + # Memory consumption of SingleJar is about 250 bytes per entry in the output file. Unfortunately, + # the JVM tends to kill the process with an OOM long before we're at the limit. In the most + # recent example, 400 MB of memory was enough for about 500,000 entries. + jvm_flags = ["-Xmx1600m"], + main_class = "com.google.devtools.build.android.ZipFilterAction", + runtime_deps = [ + ":all_android_tools" + ], +) |