Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Dramatic throughput slow down of custom FileServlet Jetty 9.4.5

I tried to follow your directions. However, I still see a major difference between Jetty8 and Jetty9. ( the problem is best shown on a real internet-connection of ~100Mbit, on a LAN connection the problem is not so dramatic)

 

Could someone (please) tell me what I am doing wrong.

 

Attached the two projects I use to compare Jetty8 and Jetty9.

 

Thanks in advance,

 

Olaf.

 


From: jetty-users-bounces@xxxxxxxxxxx [mailto:jetty-users-bounces@xxxxxxxxxxx] On Behalf Of Joakim Erdfelt
Sent: woensdag 4 oktober 2017 17:43
To: JETTY user mailing list
Subject: Re: [jetty-users] Dramatic throughput slow down of custom FileServlet Jetty 9.4.5

 

Everything you are doing in your TestWebServer#FilesServlet is what the DefaultServlet already does, and much more efficiently (with async I/O, java NIO, and memory mapped files)

 

This might be useful to you https://stackoverflow.com/a/20223103/775715

 

SocketConnector is an ancient blocking I/O connector.

 

Jetty 9 has no blocking connectors of any kind.

ServerConnector is the mechanism that handles protocol selection and encryption based on the chosen ConnectionFactories and HttpConfigurations you give it. (welcome to the new world of web protocols :-)

 


Joakim Erdfelt / joakim@xxxxxxxxxxx

 

On Wed, Oct 4, 2017 at 7:58 AM, Olaf van der Meer <o.vandermeer@xxxxxx> wrote:

Hi,

 

I have updated my Jetty web server from version 8.1.4 to 9.4.5. Since than, downloading big files takes much more time.

I have got an own servlet which can serve files from disc (a folder named ‘html’ next to running instance of the web server)

Using version 8.1.4 the throughput is fine, using 9.4.5 not. The throughput is 10 times less.

 

For the update I need to change the SocketConnector to a ServerConnector. This might be wrong?

 

Can anyone give me an explanation/solution for this?

 

Attached is a stripped copy of my code.

 

Thanks,

 

Olaf

 

 


_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users

 

Attachment: TestWebServer.zip
Description: Binary data


Back to the top