[
https://issues.apache.org/jira/browse/BEAM-4847?focusedWorklogId=126879&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-126879
]
ASF GitHub Bot logged work on BEAM-4847:
----------------------------------------
Author: ASF GitHub Bot
Created on: 24/Jul/18 21:00
Start Date: 24/Jul/18 21:00
Worklog Time Spent: 10m
Work Description: tweise 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_r204909618
##########
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:
Yes, if the machine has 128GB then it won't be enough. I would propose to
keep the JIRA open to also look for a non hardcoded solution perhaps?
----------------------------------------------------------------
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: 126879)
Time Spent: 1h 50m (was: 1h 40m)
> 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: 1h 50m
> 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)