Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

javax.servlet.ServletException: org.glassfish.jersey.server.ContainerException: java.lang.OutOfMemoryError: Java heap space #382

Closed
mabete opened this issue Jul 9, 2020 · 2 comments

Comments

@mabete
Copy link

mabete commented Jul 9, 2020

Hi,
I have tried to validate the following files:
https://romamobilita.it/sites/default/files/rome_static_gtfs.zip
https://romamobilita.it/sites/default/files/rome_rtgtfs_vehicle_positions_feed.pb

I get the following error:

[qtp11074884-18] INFO edu.usf.cutr.gtfsrtvalidator.api.resource.GtfsFeed - GTFS zip file downloaded successfully
[qtp11074884-18] INFO edu.usf.cutr.gtfsrtvalidator.api.resource.GtfsFeed - GTFS URL is new - saving metadata to database...
[qtp11074884-18] INFO edu.usf.cutr.gtfsrtvalidator.api.resource.GtfsFeed - Loading GTFS from downloaded zip file on disk to memory...
[qtp11074884-18] WARN org.eclipse.jetty.server.HttpChannel - /api/gtfs-feed
javax.servlet.ServletException: org.glassfish.jersey.server.ContainerException: java.lang.OutOfMemoryError: Java heap space
        at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:423)

I've run the tool as in:
java -Xms512M -Xmx512M -Djsse.enableSNIExtension=false -jar gtfs-realtime-validator-webapp-1.0.0-SNAPSHOT.jar

Thanks

@barbeau
Copy link
Member

barbeau commented Jul 9, 2020

@mabete Have you tried increasing the memory allocation?

Like:

java -Xms2G -Xmx2G -Djsse.enableSNIExtension=false -jar gtfs-realtime-validator-webapp-1.0.0-SNAPSHOT.jar

@mabete
Copy link
Author

mabete commented Jul 9, 2020

Using
java -Xms1300M -Xmx1300M -Djsse.enableSNIExtension=false -jar gtfs-realtime-validator-webapp-1.0.0-SNAPSHOT.jar

It works.
Thanks

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

No branches or pull requests

2 participants