i'm working on a java web application which will sends and receives JSON strings. The JSON is generated through jersey and maps to a jaxb anotated pojo.
The application itself isn't very complex but needs to work under heavy traffic. I tried two approaches. First servlet based with jetty as container and second as console application with oracles HttpServer class (using jetty through "HttpServerFactory.create(..)").
I tested both versions with apaches ab tool. Doing 10,000 request on a concurrency level of 100. To my surprise console application needed significantly less time to response and had a higher transfer rate. I expected the opposite result.
Is a plain console app realy a better solution in therms of performance for small applications? Thanks.