conveyal / gtfs-editor

A web-based GTFS editing framework. THIS PROJECT IS DEPRECATED. See https://github.com/ibi-group/datatools-ui for current version.
https://github.com/ibi-group/datatools-ui
MIT License
134 stars 63 forks source link

Out of memory error #251

Open sw2279 opened 8 years ago

sw2279 commented 8 years ago

I am getting out of memory errors for almost every process when using ubuntu on digital ocean does anyone have an idea of a better set up? I can't seems to resolve by changing my heap memory.

MKuranowski commented 8 years ago

After the run command add Java argument '-Xmx2G' where 2 stands for amount of GB you want to allocate for gtfs-editor. For 32bit Java the max is around 1.7GB (so -Xmx1740M)

cascafico commented 8 years ago

My installation is on a RaspberryPi, Debian Wheezy, 1G RAM. I'm trying to export a very simple GTFS and, like many others, encounter the Out of memory error. After first attempt with no options, I ran a play run -Xmx900M I monitored memory with htop, but no actual memory peak has been requested by process tree. Can anyone explain if there is really such a huge RAM needings, so I can abandon my small server project?

MKuranowski commented 8 years ago

As it goes from my own experience, 2GB of RAM is needed to be assigned to gtfs-editor to allow exporting and importing GTFS feed. I didn't check actual RAM need for this app, I just assumed this value by trial-and-error.

jafamo commented 7 years ago

Hi, I have a virtual machine from https://github.com/jafamo/vagrant-gtfs-editor and I can run the app, but when I am trying to export the first time, I receive a message: Execution exception OutOfMemoryError occured : Java heap space and
In /app/jobs/ProcessGtfsSnapshotExport.java (around line 67)

67: GTFSFeed feed = new GTFSFeed(); If I am trying to import file .zip from: http://transitfeeds.com/l/60-europe the same error: OutOfMemoryError occured : Java heap space In /app/jobs/ProcessGtfsSnapshotMerge.java (around line 67) 67: input = GTFSFeed.fromFile(gtfsFile.getAbsolutePath());

My VM is 3 GB RAM