Sat down last night to do some quick stress testing mainly to verify
that config.threadsafe! is working as intended, and immediately ran
into something odd.
This is tomcat 6, jruby 1.6.1, rails 3.0.5 on ubuntu. I used apache
bench with a concurrency of 50 to do my tests. The behavior is that
requests take a very long time to finish, 1-4 seconds, but rails logs
report that they all finish in under 10ms. Tomcat manager is showing
that it is creating 50 threads and they are all handling requests.
The rails action is minimal, renders some text and it’s done.
I’m pretty sure only one request is being processed at a time, but no
idea why. In warbler.rb I have min.runtimes and max.runtimes set to
- The environment file has config.threadsafe!. What else could I be