Bug 43995

Summary: Sendfile thread uses 100% cpu for long periods
Product: Tomcat 5 Reporter: Michiel Thuys <pi2tj2puk>
Component: Native:IntegrationAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 5.5.25   
Target Milestone: ---   
Hardware: Other   
OS: other   

Description Michiel Thuys 2007-11-29 06:22:51 UTC
Issue 42925 that was reported for Tomcat 6 also applies to Tomcat 5.5. When
using the Apache Portable Runtime, the sendfile thread can take 100% CPU load
when a poll descriptor time-out occurs. This happens because Poll.maintain() is
never called for the sendfile thread.

The proposed patch (http://issues.apache.org/bugzilla/attachment.cgi?id=20930)
can also be applied to Tomcat 5.5.
Comment 1 Michiel Thuys 2007-11-29 06:24:28 UTC
Link to the original issue: http://issues.apache.org/bugzilla/show_bug.cgi?id=42925
Comment 2 Mark Thomas 2007-11-29 15:13:09 UTC
A port of the TC6 fix has been formerly proposed.
Comment 3 Mark Thomas 2008-01-06 15:17:09 UTC
Fixed in 5.5.x and will be included in 5.5.26 onwards.