Edward83
Edward83

Reputation: 6686

Best modern Web Server engine or framework on Java for HTTP requests?

Could you tell me, what is the best Web Server engine for embedding into Java application? I have some logic written on Java and I want this logic to be wrapped into Web Server. Solution must be stable, fast and do not have memory leaks.

Upvotes: 1

Views: 3225

Answers (5)

Usman Ismail
Usman Ismail

Reputation: 18659

I have Jetty 7 and haven't had problems our system supports several thousand concurrent in rich media sessions. Here is a tutorial which will get you up and running in minutes.

http://www.techtraits.ca/?p=135

Upvotes: 0

Schildmeijer
Schildmeijer

Reputation: 20946

Best? probably not yet. Fast? yes. Take a look at Deft

disclaimer: I'm a deft committer

Upvotes: 4

Stephen C
Stephen C

Reputation: 718788

Solution must be stable, fast and do not have memory leaks

1) Speed, stability and absence of memory leaks are largely a result of what you do (and the mistakes that you don't make) in your webapp.

2) Certain classes of memory leaks (i.e. involving permgen) are a consequence of hot-loading webapps and retained references to objects created by old classloaders. These are not really the fault of the webserver, and they certainly cannot be solved at that level.

Upvotes: 2

Andreas Dolk
Andreas Dolk

Reputation: 114767

I'd have a look at jetty. Don't know if it's "the best" but it is embeddable and widely used. If a lot of engineers trust it, it can't be bad.

Upvotes: 6

Anders Lindahl
Anders Lindahl

Reputation: 42870

I've enjoyed using HttpCore from Apache HttpComponents:

HttpCore is a set of low level HTTP transport components that can be used to build custom client and server side HTTP services with a minimal footprint. HttpCore supports two I/O models: blocking I/O model based on the classic Java I/O and non-blocking, event driven I/O model based on Java NIO.

I won't claim that it's "best" or "modern", but it worked for me.

Upvotes: 3

Related Questions