Skip to content

Commit

Permalink
CI: Adjust memory settings
Browse files Browse the repository at this point in the history
(cherry picked from commit 2813cd5)
  • Loading branch information
famod authored and gsmet committed May 21, 2021
1 parent 9354496 commit bd167a5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/ci-actions-incremental.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ jobs:
needs: build-jdk11
timeout-minutes: 240
env:
MAVEN_OPTS: -Xmx2048m -XX:MaxMetaspaceSize=1000m
MAVEN_OPTS: -Xmx2g -XX:MaxMetaspaceSize=1g
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -255,7 +255,7 @@ jobs:
needs: build-jdk11
timeout-minutes: 180
env:
MAVEN_OPTS: -Xmx1408m -XX:MaxMetaspaceSize=1000m
MAVEN_OPTS: -Xmx1500m -XX:MaxMetaspaceSize=1g

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -303,6 +303,8 @@ jobs:
linux-jvm-maven-tests:
name: Maven Tests - JDK ${{matrix.java.name}}
runs-on: ubuntu-latest
env:
MAVEN_OPTS: -Xmx2g -XX:MaxMetaspaceSize=1g
# Skip main in forks
if: "github.repository == 'quarkusio/quarkus' || !endsWith(github.ref, '/main')"
needs: build-jdk11
Expand Down Expand Up @@ -358,6 +360,8 @@ jobs:
windows-jdk11-jvm-maven-tests:
name: Maven Tests - JDK 11 Windows
runs-on: windows-latest
env:
MAVEN_OPTS: -Xmx2g -XX:MaxMetaspaceSize=1g
# Skip main in forks
if: "github.repository == 'quarkusio/quarkus' || !endsWith(github.ref, '/main')"
needs: build-jdk11
Expand Down Expand Up @@ -408,6 +412,9 @@ jobs:
gradle-tests-jdk11-jvm:
name: Gradle Tests - JDK 11 ${{matrix.os.family}}
runs-on: ${{matrix.os.name}}
env:
# leave more space for the actual gradle execution (which is just wrapped by maven)
MAVEN_OPTS: -Xmx1g
# Skip main in forks
if: "github.repository == 'quarkusio/quarkus' || !endsWith(github.ref, '/main')"
needs: build-jdk11
Expand Down Expand Up @@ -658,6 +665,9 @@ jobs:
name: Native Tests - ${{matrix.category}}
needs: [build-jdk11, native-tests-read-json-matrix]
runs-on: ubuntu-latest
env:
# leave more space for the actual native compilation and execution
MAVEN_OPTS: -Xmx1g
# Skip main in forks
if: "github.repository == 'quarkusio/quarkus' || !endsWith(github.ref, '/main')"
# Ignore the following YAML Schema error
Expand Down Expand Up @@ -728,6 +738,9 @@ jobs:
name: Native Tests - Windows - ${{matrix.category}}
needs: [build-jdk11, native-tests-read-json-matrix]
runs-on: windows-latest
env:
# leave more space for the actual native compilation and execution
MAVEN_OPTS: -Xmx1g
# Skip main in forks
if: "github.repository == 'quarkusio/quarkus' || !endsWith(github.ref, '/main')"
# Ignore the following YAML Schema error
Expand Down
2 changes: 1 addition & 1 deletion build-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@
<maven.settings>${session.request.userSettingsFile.path}</maven.settings>
<project.version>${project.version}</project.version> <!-- some dev tools tests need this -->
</systemPropertyVariables>
<argLine>${jacoco.agent.argLine} -Xmx1500m</argLine> <!-- limit the amount of memory surefire can use, 1500m should be plenty-->
<argLine>${jacoco.agent.argLine} -Xmx1500m -XX:MaxMetaspaceSize=1500m</argLine> <!-- limit the amount of memory surefire can use, 1500m should be plenty-->
<!-- https://lists.apache.org/thread.html/r9030808273c82ac6d7b9602d34d446c7d8c4e8aa02c41bca164df1c5%40%3Cdev.maven.apache.org%3E -->
<trimStackTrace>false</trimStackTrace>
</configuration>
Expand Down

0 comments on commit bd167a5

Please sign in to comment.