Skip to content

Commit

Permalink
Merge pull request #2735 from rsksmart/vovchyk/gradle-heap-size-increase
Browse files Browse the repository at this point in the history
build: increase gradle heap size
  • Loading branch information
Vovchyk authored Sep 26, 2024
2 parents 2a0d333 + f2eedaa commit c19fe27
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ jobs:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: |
if [ "$GH_EVENT" = pull_request ]; then
./gradlew sonarqube --no-daemon -x build -x test \
./gradlew -Dorg.gradle.jvmargs=-Xmx5g sonarqube --no-daemon -x build -x test \
-Dsonar.pullrequest.base="$GH_PR_BASE_REF" \
-Dsonar.pullrequest.branch="$GH_PR_HEAD_REF" \
-Dsonar.pullrequest.key="$GH_PR_NUMBER" \
Expand All @@ -117,7 +117,7 @@ jobs:
-Dsonar.coverage.jacoco.xmlReportPaths=rskj-core/build/reports/jacoco/test/jacocoTestReport.xml \
-Dsonar.token="$SONAR_TOKEN"
else
./gradlew sonarqube --no-daemon -x build -x test \
./gradlew -Dorg.gradle.jvmargs=-Xmx5g sonarqube --no-daemon -x build -x test \
-Dsonar.branch.name="$GH_REF" \
-Dsonar.organization=rsksmart \
-Dsonar.projectKey=rskj \
Expand Down
6 changes: 3 additions & 3 deletions rskj-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ test {
logger.lifecycle("Running test: ${descriptor}")
}

jvmArgs '-Xss32m', '-Xmx3G'
jvmArgs '-Xss32m', '-Xmx4G'

testLogging {
events "failed"
Expand All @@ -63,7 +63,7 @@ jacocoTestReport {
task parallelTest(type: Test) {
useJUnitPlatform()
//increase heap memory
jvmArgs '-Xss64m', '-Xmx3G'
jvmArgs '-Xss64m', '-Xmx4G'
//stop build after the first failing test
failFast = project.hasProperty("failFast")
//option to use the half of the available cores (it can be increased but there is no too much difference)
Expand All @@ -90,7 +90,7 @@ sourceCompatibility = 17
targetCompatibility = 17

mainClassName = 'co.rsk.Start'
applicationDefaultJvmArgs = ["-server", "-Xss32m", "-Xms3G", "-XX:+UseCompressedOops", "-XX:-OmitStackTraceInFastThrow"]
applicationDefaultJvmArgs = ["-server", "-Xss32m", "-Xms3G", "-Xmx5G", "-XX:+UseCompressedOops", "-XX:-OmitStackTraceInFastThrow"]

tasks.withType(JavaCompile) {
options.warnings = false
Expand Down

0 comments on commit c19fe27

Please sign in to comment.