Bug 43995 - Sendfile thread uses 100% cpu for long periods
Sendfile thread uses 100% cpu for long periods
Status: RESOLVED FIXED
Product: Tomcat 5
Classification: Unclassified
Component: Native:Integration
5.5.25
Other other
: P2 normal (vote)
: ---
Assigned To: Tomcat Developers Mailing List
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2007-11-29 06:22 UTC by Michiel Thuys
Modified: 2008-01-06 15:17 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.