Ticket #577 (new defect)

Opened 2 years ago

Last modified 3 months ago

lighttpd terminally ceases serving connections when server.max-connections state reached

Reported by: moorman Assigned to: jan
Priority: highest Milestone:
Component: core Version: 1.4.16
Severity: critical Keywords: patch
Cc: Blocking:
Need Feedback: 1

Description

With lighttpd 1.4.10 and server.max-connections=256 specified in lighttpd config, lighttpd ceased serving new connections (including server status page hits) when max connections was reached.

strace output of running process:

19:27:14.366461 epoll_wait(16, {}, 4087, 1000) = 0
19:27:15.366260 time(NULL)              = 1142134035
19:27:15.366405 epoll_wait(16, {}, 4087, 1000) = 0
19:27:16.366213 time(NULL)              = 1142134036
19:27:16.366365 epoll_wait(16, {}, 4087, 1000) = 0
19:27:17.366153 time(NULL)              = 1142134037
19:27:17.366290 epoll_wait(16, {}, 4087, 1000) = 0
19:27:18.366251 time(NULL)              = 1142134038
19:27:18.366433 epoll_wait(16, {}, 4087, 1000) = 0
19:27:19.366057 time(NULL)              = 1142134039
19:27:19.366226 epoll_wait(16, {}, 4087, 1000) = 0
19:27:20.365993 time(NULL)              = 1142134040
19:27:20.366137 epoll_wait(16, {}, 4087, 1000) = 0
19:27:21.366942 time(NULL)              = 1142134041
19:27:21.367084 epoll_wait(16, {}, 4087, 1000) = 0
19:27:22.367893 time(NULL)              = 1142134042
19:27:22.368064 epoll_wait(16, {}, 4087, 1000) = 0

error log data:

2006-03-11 19:14:02: (server.c.1218) [note] sockets disabled, connection limit reached
2006-03-11 19:17:03: (server.c.1126) NOTE: a request for [omitted] timed out after writing 18824 bytes. We waited 360 seconds. If this a problem increase server.max-write-idle
2006-03-11 19:17:36: (server.c.1126) NOTE: a request for [omitted] timed out after writing 8305 bytes. We waited 360 seconds. If this a problem increase server.max-write-idle

Server is still listening on ports and telnet to port succeeds, but no change in activity is shown in strace output. Commands entered via telnet ("GET /") receive no response from server.

Attachments

07_fix_fdevents.dpatch (2.3 kB) - added by stbuehler on 08/24/2007 11:49:38 PM.

Change History

08/24/2007 11:49:18 PM changed by stbuehler

  • version changed from 1.4.10 to 1.4.16.
  • blocking changed.
  • pending set to 1.

Still there in 1.4.16; tested on a Debian system.
I think it just increases load; if you want you can try my patch below, it did stop the epoll_wait flooding on my system.

08/24/2007 11:49:38 PM changed by stbuehler

  • attachment 07_fix_fdevents.dpatch added.

08/28/2007 08:27:37 AM changed by Peak

I think it just increases load月餅

08/28/2007 08:35:05 PM changed by BamaStangGuy

I am running into this as well.

2007-08-28 16:18:42: (server.c.1165) NOTE: a request for [omitted] timed out after writing 19488 bytes. We waited 360 seconds. If this a problem increase server.max-write-idle
2007-08-28 16:23:07: (server.c.1165) NOTE: a request for [omitted] timed out after writing 8576 bytes. We waited 360 seconds. If this a problem increase server.max-write-idle
2007-08-28 16:24:22: (server.c.1165) NOTE: a request for [omitted] timed out after writing 8576 bytes. We waited 360 seconds. If this a problem increase server.max-write-idle
2007-08-28 16:25:29: (server.c.1165) NOTE: a request for [omitted] timed out after writing 15008 bytes. We waited 360 seconds. If this a problem increase server.max-write-idle

Lighty Config:

server.max-keep-alive-requests = 500
server.max-keep-alive-idle = 2
server.max-read-idle = 5
server.max-write-idle = 360
server.max-fds = 8192

09/30/2007 10:21:35 AM changed by anonymous

thanks seduction

10/05/2007 09:27:42 AM changed by anonymous

running as well.interior design

(follow-up: ↓ 7 ) 10/05/2007 09:29:49 AM changed by anonymous

thanks.Mini storage

(in reply to: ↑ 6 ) 12/19/2007 05:48:05 PM changed by anonymous

thanks Acomplia

01/15/2008 10:32:21 PM changed by stbuehler

  • keywords set to patch.

02/11/2008 12:22:11 AM changed by anonymous

thanks for the info paruresis


Add/Change #577 (lighttpd terminally ceases serving connections when server.max-connections state reached)




Change Properties