Alexey Verkhovsky wrote:
* rake RAILS_ENV=production db:dataload (loads some small amount of test data) * Start the app * Warm up the JIT compiler: ab -c 1 -n 1000 http://localhost:3002/shop/viewProduct.shtml?product=K9-DL-01 * Test: ab -c 1 -n 100 http://localhost:3002/shop/viewProduct.shtml?product=K9-DL-01
Tom mentioned this, but I just noticed it too...1000 requests isn't enough to warm up hotspot with the server VM. I've typically done a minimum of 10k requests to get it really cranking before I record any numbers. Tom's 100k is sure to do it.
Basically the HotSpot server VM doesn't optimize methods until they're hit something like 10k times. That's why it's really best for server applications; it takes a long time to warm up. The client VM will warm up faster, but it will never get as fast.
Java 7 promises to merge the two. - Charlie --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email