Summary: | Sendfile thread uses 100% cpu for long periods | ||
---|---|---|---|
Product: | Tomcat 6 | Reporter: | Chris Lear <chris.lear> |
Component: | Catalina | Assignee: | Tomcat Developers Mailing List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | celving, clovis.wichoski, muralie.vr |
Priority: | P2 | ||
Version: | unspecified | ||
Target Milestone: | default | ||
Hardware: | PC | ||
OS: | Linux | ||
Attachments: | Proposed patch |
Description
Chris Lear
2007-07-18 01:53:44 UTC
This is a result of AprEndpoint.Sendfile.init calling Poll.create with a timeout parameter but never calling Poll.maintain to deal with the resulting poll descriptor timeouts. My work around was to pass a timeout of -1 to Poll.create. Created attachment 20930 [details]
Proposed patch
This patch replaces the TODO with code that calls maintain. I was not aware
calling maintain was more or less mandatory.
This was fixed in rev 583650. |