Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Out of memory error #251

Open
sw2279 opened this issue Feb 14, 2016 · 4 comments
Open

Out of memory error #251

sw2279 opened this issue Feb 14, 2016 · 4 comments

Comments

@sw2279
Copy link

sw2279 commented Feb 14, 2016

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
Copy link

MKuranowski commented May 19, 2016

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
Copy link

cascafico commented Jul 14, 2016

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
Copy link

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
Copy link

jafamo commented Jun 23, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants