Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] (no subject)

Olaf,

I'm not aware of any particular slow down in 9.4.5, certainly not that order of magnitude, although I think we miss configured some internals in some recent releases.   Do you get the same with 9.4.6 or 9.4.7?

Note that if performance is important to you, then you should use the jetty DefaultServlet or at least look at the code of how it sends files.   It can use FileMappedBuffers to directly write a file and thus can bypass all the buffering in user space.   You code is probably double buffering, once in your small buffer and then again aggregated into the HttpOutputStreams buffer.   At the very least, use a 16KB buffer or configure down the output buffer so you don't trigger the double buffering.  In fact, it could just be that we changed the default buffer sizes in 9, so you code in 8 was only single buffering, but is now double buffering.

regards


On 5 October 2017 at 01:51, 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



--

Back to the top