Hi all
im planning to use java/jsp for web application installed on virtual web hosting space
i know tomcat very well but i keep reading about jetty that is small and fast
what to you think from your experience about the two ?
what is better ?
i will use Nginx for static pages .
views:
119answers:
2Keep in mind though that those tests mentioned by spender are pretty old, for example they are using Jetty 4.2.20 (latest version is 8.0.0.M0), so a lot has probably changed since then. I can't seem to find any reliable current tests on google but I do remember reading articles that basically said that nowadays the performance gap has narrowed.
Although they are not detailed performance test these articles have some relevant information:
Don't forget that with Jetty you can actually have the web server embedded into your application, which for some users can be extremely practical, but probably won't suit a project that is large.
It's not as fully featured as other options (incl. Tomcat), but as you mention it is small and fast. If you can see advantages of embedding it and it's a small project, use it.