The progress halts, or becomes slow to the point where progress is unnoticable, without execution stopping or crashing, when attempting to read a large (~250MB) turtle rdf file into a Jena model, created with org.apache.jena.rdf.model.ModelFactory.createDefaultModel(), using org.apache.jena.rdf.model.Model's read() method (tested with both the methods using String url and InputStream in).
The progress will continue until the process uses 1-1.5GB RAM, and progress halts, but execution neither stops nor crashes. The code on the bottom displays the behaviour with a progress bar for the file being read.
This has been the case for my laptop running Windows 10 using
Version: Mars.1 Release (4.5.1)
Build id: 20150924-1200
My desktop running Windows 7 using
Version: Kepler Service Release 2
Build id: 20140224-627
My professor's Mac using Eclipse, however I don't know which versions.
All three systems were employing Apache Jena 3.0.1, and all of them experienced the same issue.
I have attempted to manually set the max heap size of the JVM by using the -Xmx3G, however the result did not change.
Employing Apache Jena Version 2.7.4, and using the same resources in the com.hp.hpl package instead of org.apache fixed the problem on all three systems.
Here is the java test code:
The "LSQ-BM.ttl" file can be (and was) retrieved from here.