Skip to content

Commit

Permalink
Give more memory for OTP graph building
Browse files Browse the repository at this point in the history
  • Loading branch information
vesameskanen committed Sep 11, 2023
1 parent 838eea2 commit cbf704f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion task/OTPTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion task/buildOTPGraph.js
Original file line number Diff line number Diff line change
Expand Up @@ -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+')

Expand Down

0 comments on commit cbf704f

Please sign in to comment.