'System Warning: #5000001: java.lang.ArrayIndexOutOfBoundsException: -1'
Tim Holloway wrote:So what you really had was a race condition, not a performance issue as such. Race conditions tend to make themselves more apparent as the load increases (as you saw).
Unfortunately, they can be hard to diagnose, as they're often difficult to reproduce for analysis. One of my particular specialities is design and programming for environments like this, but sadly, I've been accused of spending too much time worrying about "things that won't happen" - a/k/a "Just git 'er dun!".
Unfortunately, Murphy's Law is quite clear on that point. The things that "won't happen" - will, and at the worst possible time.