diff --git a/task/OTPTest.js b/task/OTPTest.js index 15ea4a82..d6bff729 100644 --- a/task/OTPTest.js +++ b/task/OTPTest.js @@ -28,7 +28,7 @@ function testWithOTP (otpFile, quiet = false) { const r = fs.createReadStream(otpFile) r.on('end', () => { try { - const build = exec(`docker run --rm -v ${hostDataDir}/tmp:/opt/opentripplanner/graphs --entrypoint /bin/bash hsldevcom/opentripplanner:${testTag} -c "java -Xmx10G -jar otp-shaded.jar --build graphs/${dir} "`, + const build = exec(`docker run --rm -v ${hostDataDir}/tmp:/opt/opentripplanner/graphs --entrypoint /bin/bash hsldevcom/opentripplanner:${testTag} -c "java -Xmx12G -jar otp-shaded.jar --build graphs/${dir} "`, { maxBuffer: constants.BUFFER_SIZE }) build.on('exit', function (c) { if (c === 0) { diff --git a/task/buildOTPGraph.js b/task/buildOTPGraph.js index 3e901470..2303cafd 100644 --- a/task/buildOTPGraph.js +++ b/task/buildOTPGraph.js @@ -20,7 +20,7 @@ const buildGraph = function (config) { const version = execSync(`docker pull hsldevcom/opentripplanner:${graphBuildTag};docker run --rm --entrypoint /bin/bash hsldevcom/opentripplanner:${graphBuildTag} -c "java -jar otp-shaded.jar --version"`) const commit = version.toString().match(/commit: ([0-9a-f]+)/)[1] - const buildGraph = exec(`docker run -v ${hostDataDir}/build:/opt/opentripplanner/graphs --rm --entrypoint /bin/bash hsldevcom/opentripplanner:${graphBuildTag} -c "java -Xmx10g -jar otp-shaded.jar --build graphs/${config.id}/router"`, { maxBuffer: constants.BUFFER_SIZE }) + const buildGraph = exec(`docker run -v ${hostDataDir}/build:/opt/opentripplanner/graphs --rm --entrypoint /bin/bash hsldevcom/opentripplanner:${graphBuildTag} -c "java -Xmx12g -jar otp-shaded.jar --build graphs/${config.id}/router"`, { maxBuffer: constants.BUFFER_SIZE }) // const buildGraph = exec('ls -la'); const buildLog = fs.openSync(`${dataDir}/build/${config.id}/build.log`, 'w+')