This is an automated email from the ASF dual-hosted git repository.
pkarwasz pushed a commit to branch release-2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
The following commit(s) were added to refs/heads/release-2.x by this push:
new ca95a6983d Increases JVM heap memory
ca95a6983d is described below
commit ca95a6983d66912fab1e5605a62ba8a141fa4145
Author: Piotr P. Karwasz <[email protected]>
AuthorDate: Thu Sep 8 15:02:43 2022 +0200
Increases JVM heap memory
Based on the parameters of the [GitHub-hosted
runners](https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources),
we can increase the heap memory to 3 GiB.
---
.github/workflows/build.yml | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index f28b846007..cf320d62aa 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -28,7 +28,9 @@ jobs:
build:
runs-on: ${{ matrix.os }}
-
+ # Based on:
https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources
+ env:
+ MAVEN_OPTS: -Xms3072m -Xmx3072m
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
@@ -102,6 +104,8 @@ jobs:
deploy:
runs-on: ubuntu-latest
+ env:
+ MAVEN_OPTS: -Xms3072m -Xmx3072m
needs: build
if: github.repository == 'apache/logging-log4j2' && github.ref ==
'refs/heads/release-2.x'