I've started Fuseki
./fuseki-server --loc=database --localhost --port=7000 /query
and then I've started my script, with 16 threads (each one making a request to
Fuseki). I did not set -Xmx, but I saw in htop that 4GB was chosen
automatically. I did this on my PC with 16GB RAM, 2C4T CPU. When I was seeing
Fuseki using around 12GB of memory, I would pause my script, restart Fuseki,
and resume my script. I did this a couple of times and the job completed
without issues (no OOM and no crashes). It took ~2h.
I don't know if this adds any useful information.