Skip to main content

Jetty 6.1.6 is out, with Grizzly 1.6.1 support

Posted by jfarcand on November 19, 2007 at 2:45 PM PST

Jetty 6.1.6 has been released, and that release can now run using Grizzly 1.6.1. 6.1.6 - 1.6.1...7.7.7...a new monster is born!

IMG_0609.JPG

Greg recently announced the availability of Jetty 6.1.6. As usual, the Jetty community is doing great job of delivering a very nice product. Among the new features, I've recently ported Grizzly support in Jetty, removing the dependencies of Grizzly 1.0.x and instead using the brand new 1.6.1. The design is much better and this time I didn't have to changes anything from Jetty itself. And just for fun, I did a little benchmark between the two connectors using Faban with 50 users. Just a simple ping like http://:
/jetty-test/index.html:

Using Jetty Connector:
ops/sec: 2021.167
% errors: 0.0
avg. time: 0.002
max time: 0.163
90th %: 0.05
Using Grizzly Connector:
ops/sec: 2639.450
% errors: 0.0
avg. time: 0.002
max time: 0.122
90th %: 0.05

And now with a Servlet that looks like:

    public void doPost ....

        response.setContentType("text/plain");
        response.setStatus(HttpServletResponse.SC_OK);
        PrintWriter wrt = response.getWriter();
        for (int i = 0; i < 10000 ; i++) {
            wrt.write("Text(1)");
        }
    }

Using Jetty Connector:
ops/sec: 98.875
% errors: 0.0
avg. time: 0.050
max time: 0.352
90th %: 0.15
Using Grizzly Connector:
ops/sec: 103.533
% errors: 0.0
avg. time: 0.048
max time: 0.320
90th %: 0.10

But wait! That doesn't means anything as the Jetty Connector as much more features, and my implementation might still have some bugs....for now :-). But I really think my temporary Selector trick when reading/writing is making the difference!

As usual, I've managed to inject a bug just before the release. So if you are planning to use the Grizzly Connector, install Jetty and download the jetty-grizzly-6.1-SNAPSHOT.jar, and drop it under ${jetty.home}/lib/grizzly/. Then follow the instruction on how to start Jetty on Grizzly here. Oh ya! being able to run on 1.6.1 will make Jetty running in GlassFish v3 really simple! Feedback are welcome! Next monster Grizzly should run with and attack: Tomcat!

technorati:

Related Topics >>