- Run local postgres - testing with H2 in-memory DB doesn't make sense as the blob is stored in-memory
- Start app with decent memory limit, like
-Xmx50M
- Open
jvisualvm
- Test and watch memory consumption in
jvisualvm
mkfile -n 500m /tmp/data.dat
curl -D - -F "file=@/tmp/data.dat" http://localhost:8080/blobs
curl -o /tmp/data.dat.download __Location header from previous command__