I’m using JMeter to load test a service where I am POSTING large messages (2 – 20MB). The existing HTTP sampler can be setup to POST the contents of a file, but it loads the file each time which makes it hard to send a decent load as it takes several seconds just to load the file.
Ideally it would load the files once into memory the first iteration.
I thought I could setup a BSF sampler using Groovy. But the BSF sampler seems to re-compile the script each time so I don’t have a way to just load the file once.
Any suggestion?
There was a discussion on this problem: Google Groups topic
As a result, I modified Raw Request and it does efficient large file POSTs