During my tests, I consistently found that the 1st call to couchbase has very high response time (~1000ms) compared to other calls(~5ms).
I have also noticed erratic spikes in the response time(~2000ms) when I perform GET requests for about 1 million requests.
What are the possible parameters( no. of Connections, CPU usage etc) that might cause this kind of behaviour?
Are there any config changes that will help me solve this problem?
The first delay is likely caused by the time it takes to create and auth the first 5 items in the pool (MinSize=5). The second would be much harder to diagnose but is probably related to GC, but could be caused by either a) the pool resizing b) connection pool starvation.