I ran the http-invoker based jpetstore sample. Interestingly, I got reasonably fast response times for up to 3 repetitions of the service request (400 ms or so). Beyond 4 repetitions, though, the performance got worse and worse, and it sort of stabilized at about 2 seconds/request, for, say, a loop of 20 requests.
What is causing this significant performance degradation? The requests are sent sequentially in a loop, so there is always only request dealt with at a time.
Has anyone alse noticed it? Is there a remedy?
Performance problems - non-local only
One note: The problematic performance can only be observed when NOT using "localhost" for the server address in client.properties, but a regular IP address (even though the client and the server are on the same machine). For "localhost", the performance is relatively consistent whether I have 1 or 20 iterations.
What I am puzzled with is not the ABSOLUTE performance (with network overhead, performance degradation is to be expected), but rather the sudden drop from 1-3 repetitions (very good performance) to 20 repetitions (very poor performance, 10-15x times worse).
msauer, could you re-run your test not using localhost, but an IP address?
Could it be the network?
Thanks in advance,