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
Which tool are you using?
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.
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