Mantis - Resin
Viewing Issue Advanced Details
5784 minor always 08-04-14 10:52 09-08-14 10:25
alex  
ferg  
normal  
closed 4.0.40  
fixed  
none    
none 4.0.41  
0005784: WINDOWS ONLY: FileServlet: improve download speed
On big file before the download starts we spend considerable amount of time building CRC64.
- After the download starts the profile is below

92.763% 29.800s 92.763% JniSocketImpl.writeNative(

at com.caucho.vfs.JniSocketImpl.writeNative()
  at com.caucho.vfs.JniSocketImpl.write()
  at com.caucho.vfs.JniStream.write()
  at com.caucho.vfs.WriteStream.nextBuffer()
  at com.caucho.server.http.HttpResponseStream.writeNextBufferImpl()
  at com.caucho.server.http.ResponseStream.writeNextBuffer()
  at com.caucho.server.http.ResponseStream.nextBuffer()
  at com.caucho.vfs.Path.writeToStream()
  at com.caucho.server.http.HttpResponseStream.sendFile()
  at com.caucho.servlets.FileServlet.service()
  at com.caucho.server.dispatch.ServletFilterChain.doFilter()
  at com.caucho.server.webapp.WebAppFilterChain.doFilter()
  at com.caucho.server.webapp.AccessLogFilterChain.doFilter()
  at com.caucho.server.dispatch.ServletInvocation.service()
  at com.caucho.server.http.HttpRequest.handleRequest()
  at com.caucho.network.listen.TcpSocketLink.dispatchRequest()
Additional Information This is on a 7G zip file.

WINDOWS:

Tomcat | Resin + JNI | Resin – JNI
70M/s | 18 M/s | 28M/S

There are no notes attached to this issue.