|Summary:||Active multipart downloads prevent tomcat shutdown.|
|Product:||Tomcat Native||Reporter:||Lyle Winton <lyle>|
|Component:||Library||Assignee:||Tomcat Developers Mailing List <dev>|
Description Lyle Winton 2010-02-02 02:12:30 UTC
I was testing stability of Tomcat Native for high performance file downloads. Specifically I was downloading a 2GB file using a download manager that supports multi-part downloads (simultaneous download of file segments). Download works fine, however, if you try to shutdown tomcat during the multipart download it hangs indefinitely and the CPU of the tomcat java process goes up. (Single part downloads work fine, completed multi-part download causes no shutdown problems, and with tomcat native turned off the shutdown works fine.) Tomcat version: 6.0.24 OS: Windows XP SP3 Tomcat Native binaries from: http://apache.16degrees.com.au/tomcat/tomcat-connectors/native/1.1.19/binaries/ APR binaries: apr-1.3.6-iconv-1.2.1-util-1.3.8-win32-x86-msvcrt60.zip
Comment 1 jfclere 2011-03-10 06:07:24 UTC
Which tool are you using?
Comment 2 Mark Thomas 2017-08-21 16:17:38 UTC
I can re-create this with Tomcat trunk, Tomcat Native trunk and the "Download them all" add-on for Firefox. Stopping Tomcat in the middle of a large download triggered a JVM crash. Not a major problem since Tomcat was stopping anyway but it would be better to shutdown cleanly.
Comment 3 Mark Thomas 2017-08-21 17:04:11 UTC
In the current code at least, this appears to have been an issue in Tomcat rather than the native library. Fixed in: - trunk for 9.0.0.M27 onwards - 8.5.x for 8.5.21 onwards - 8.0.x for 8.0.47 onwards - 7.0.x for 7.0.82 onwards