r5r::setup_r5 resulting in java.lang.OutOfMemoryError: Java heap space

211 views Asked by At

I am using GTFS data from https://opentransportdata.swiss/de/dataset/timetable-2023-gtfs2020 (this file) and OSM from https://download.geofabrik.de/europe/ (this file).

I tried it on my low specs computer first, then tried to on a 64GB RAM + 50 GB SWAP machine in a rocker/geospatial docker.

rJava::.jinit()
rJava::.jcall("java.lang.System", "S", "getProperty", "java.version")
# "11.0.18"
## restarting R session here solved my issue ##
options(java.parameters = "-Xmx50G")
library(r5r)
library(sf)
library(data.table)
library(ggplot2)
r5r_core <- setup_r5(data_path = "/switzerlandR", temp_dir = T, verbose = T)
[...]
2023-06-04 21:45:12,333 [main] DEBUG c.c.r.l.LevelOfTrafficStressLabeler - Unable to parse maxspeed tag signals
2023-06-04 21:45:12,333 [main] DEBUG c.c.r.l.LevelOfTrafficStressLabeler - Unable to parse maxspeed tag signals
2023-06-04 21:45:12,574 [main] DEBUG c.c.r.s.StreetLayer - Way has no permissions skipping!
2023-06-04 21:45:12,574 [main] DEBUG c.c.r.s.StreetLayer - Way has no permissions skipping!
2023-06-04 21:45:12,574 [main] DEBUG c.c.r.s.StreetLayer - Way has no permissions skipping!
2023-06-04 21:45:12,574 [main] DEBUG c.c.r.s.StreetLayer - Way has no permissions skipping!
2023-06-04 21:45:12,574 [main] DEBUG c.c.r.s.StreetLayer - Way has no permissions skipping!
2023-06-04 21:45:12,621 [main] DEBUG c.c.r.l.TraversalPermissionLabeler - Unknown access tag:permit
2023-06-04 21:45:12,622 [main] DEBUG c.c.r.l.TraversalPermissionLabeler - Unknown access tag:permit
2023-06-04 21:45:12,674 [main] DEBUG c.c.r.s.StreetLayer - Way has no permissions skipping!
2023-06-04 21:45:12,674 [main] DEBUG c.c.r.s.StreetLayer - Way has no permissions skipping!
Error in setup_r5(data_path = "/switzerlandR", temp_dir = T, verbose = T) : 
  java.lang.OutOfMemoryError: Java heap space

What could be the issue? What could I try?

0

There are 0 answers