[
https://issues.apache.org/jira/browse/BEAM-6635?focusedWorklogId=197043&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-197043
]
ASF GitHub Bot logged work on BEAM-6635:
----------------------------------------
Author: ASF GitHub Bot
Created on: 11/Feb/19 16:59
Start Date: 11/Feb/19 16:59
Worklog Time Spent: 10m
Work Description: adude3141 commented on pull request #7795: [BEAM-6635]
increase maxHeapSize for test tasks
URL: https://github.com/apache/beam/pull/7795#discussion_r255599759
##########
File path:
buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy
##########
@@ -671,8 +671,12 @@ class BeamModulePlugin implements Plugin<Project> {
include "**/*TestCase.class"
}
- // Configure all test tasks to use JUnit
- project.tasks.withType(Test) { useJUnit {} }
+ project.tasks.withType(Test) {
+ // Configure all test tasks to use JUnit
+ useJUnit {}
+ // default maxHeapSize on gradle 5 is 512m, lets increase to handle
more demanding tests
+ maxHeapSize = '2g'
Review comment:
Actually, I started of by adding 'maxHeapSize' to individual projects
build.gradle. Have been 3 (or 4?) for javaPreCommit.
I do not have a strong opinion on which to prefer. Of course, doing it
explicitly might reveal some issues, where we will have some leak. Downside
will be those, why does that test not work here... same test works there...
So I d sa<, as u like...
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 197043)
Time Spent: 1.5h (was: 1h 20m)
> Fix java.lang.OutOfMemoryError: Java heap space on gradle 5
> -----------------------------------------------------------
>
> Key: BEAM-6635
> URL: https://issues.apache.org/jira/browse/BEAM-6635
> Project: Beam
> Issue Type: Bug
> Components: build-system
> Reporter: Michael Luckey
> Assignee: Michael Luckey
> Priority: Major
> Time Spent: 1.5h
> Remaining Estimate: 0h
>
> With gradle 5
> {noformat}
> All workers, including compilers and test executors, now start with 512MB of
> heap.
> The previous default was 1/4th of physical memory. Large projects may have to
> increase
> this setting on the relevant tasks, e.g. JavaCompile or Test.
> {noformat}
> This change cause some of our test to fail.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)