You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@polaris.apache.org by sn...@apache.org on 2026/06/25 06:41:58 UTC

(polaris) branch main updated: Build: Give quarkus-build more heap (#4888)

This is an automated email from the ASF dual-hosted git repository.

snazy pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/polaris.git


The following commit(s) were added to refs/heads/main by this push:
     new a1893fa9de Build: Give quarkus-build more heap (#4888)
a1893fa9de is described below

commit a1893fa9deebeea44530a3d9ac2495e26179a895
Author: Robert Stupp <sn...@snazy.de>
AuthorDate: Thu Jun 25 08:41:54 2026 +0200

    Build: Give quarkus-build more heap (#4888)
    
    The Quarkus build can require a bit more heap space. Since the actual Quarkus build happens in a separately forked process, this can be controlled on the `quarkusBuild` extension.
    
    This change sets the max heap size for these build-worker processes to 2G, which should be enough and could reduce GC pressure.
---
 runtime/admin/build.gradle.kts  | 3 +++
 runtime/server/build.gradle.kts | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/runtime/admin/build.gradle.kts b/runtime/admin/build.gradle.kts
index 94bf1dfd2b..c4a9985423 100644
--- a/runtime/admin/build.gradle.kts
+++ b/runtime/admin/build.gradle.kts
@@ -87,6 +87,9 @@ quarkus {
         .toMap()
     }
   )
+  buildForkOptions {
+    maxHeapSize = "2G"
+  }
 }
 
 // Configuration to expose distribution artifacts
diff --git a/runtime/server/build.gradle.kts b/runtime/server/build.gradle.kts
index ced37f482b..14f3524d9f 100644
--- a/runtime/server/build.gradle.kts
+++ b/runtime/server/build.gradle.kts
@@ -73,6 +73,9 @@ quarkus {
         .toMap()
     }
   )
+  buildForkOptions {
+    maxHeapSize = "2G"
+  }
 }
 
 tasks.register("run") {