Skip to content

VIVO-1696 - fix for OutOfMemoryError with large file upload in RDFServiceGraph flush()

backups requested to merge github/fork/alessandroGalasso/VIVO-1696 into main

Created by: alessandroGalasso

JIRA Issue: (https://jira.duraspace.org/browse/VIVO-1696)

What does this pull request do?

fix OutOfMemoryError on large upload files to api/sparqlUpdate in RDFServiceGraph flush() method

What's new?

  • avoids exceeding the string limit size
  • keep memory low

How should this be tested?

  • use a big nt input file , about 1.5GB.
  • upload the file to the api/sparqlUpdate on a tomcat with -Xmx6000m or more

example: curl "http://server/webapp/api/sparqlUpdate" -d "email=root@email" -d "password=rootPassword" -d "update=LOAD http://server/bigfile.nt into graph http://vitro.mannlib.cornell.edu/default/vitro-kb-2"

Interested parties

@VIVO-project/vivo-committers

Merge request reports