[
https://issues.apache.org/jira/browse/BEAM-4847?focusedWorklogId=126923&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-126923
]
ASF GitHub Bot logged work on BEAM-4847:
----------------------------------------
Author: ASF GitHub Bot
Created on: 24/Jul/18 22:00
Start Date: 24/Jul/18 22:00
Worklog Time Spent: 10m
Work Description: alanmyrvold commented on a change in pull request
#6046: [BEAM-4847] Fix java OOM errors during compile by setting maxWorkers,
Xms and Xmx to reasonable values
URL: https://github.com/apache/beam/pull/6046#discussion_r204925771
##########
File path: .test-infra/jenkins/CommonJobProperties.groovy
##########
@@ -188,16 +189,9 @@ class CommonJobProperties {
// Ensure that parallel workers don't exceed total available memory.
- // TODO(BEAM-4230): OperatingSystemMXBeam incorrectly reports total
memory; hard-code for now
- // Jenkins machines are GCE n1-highmem-16, with 104 GB of memory
- // def os =
(com.sun.management.OperatingSystemMXBean)java.lang.management.ManagementFactory.getOperatingSystemMXBean()
- // def totalMemoryMb = os.getTotalPhysicalMemorySize() / (1024*1024)
- def totalMemoryMb = 104 * 1024
- // Jenkins uses 2 executors to schedule concurrent jobs, so ensure that
each executor uses only half the
- // machine memory.
- def totalExecutorMemoryMb = totalMemoryMb / 2
- def perWorkerMemoryMb = totalExecutorMemoryMb / maxWorkers
- context.switches("-Dorg.gradle.jvmargs=-Xmx${(int)perWorkerMemoryMb}m")
+ // For [BEAM-4847], hardcode Xms and Xmx to reasonable values (3g/8g).
Review comment:
Only if all 24 workers are at max heap size? I'd expect a distribution among
them where many are not max'd out.
----------------------------------------------------------------
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: 126923)
Time Spent: 2h (was: 1h 50m)
> Java PreCommit is flaky: Expiring Daemon because JVM Tenured space is
> exhausted
> -------------------------------------------------------------------------------
>
> Key: BEAM-4847
> URL: https://issues.apache.org/jira/browse/BEAM-4847
> Project: Beam
> Issue Type: Bug
> Components: build-system
> Reporter: Boyuan Zhang
> Assignee: Alan Myrvold
> Priority: Major
> Time Spent: 2h
> Remaining Estimate: 0h
>
> Java PreCommit seems like flaky:
> https://builds.apache.org/job/beam_PreCommit_Java_Commit/505/console
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)