Ticket #1250 (new defect)

Opened 1 year ago

Last modified 1 year ago

High load with lighttpd + fastcgi

Reported by: ivyrake@gmail.com Assigned to: jan
Priority: normal Milestone: 1.5.0
Component: core Version: 1.4.15
Severity: critical Keywords:
Cc: Blocking:
Need Feedback: 0 Blocked By: 1245

Description

I had writen a very simple fastcgi app,but when i run it on a high load server it sucks up all the CPU time even if i had already stop the http request

top - 18:00:50 up 15 days,  9:14,  4 users,  load average: 1.00, 1.02, 1.02
Tasks: 110 total,   2 running, 106 sleeping,   2 stopped,   0 zombie
Cpu(s):  0.6% us,  0.5% sy,  0.0% ni, 98.9% id,  0.0% wa,  0.0% hi,  0.0% si
Mem:    513456k total,   441712k used,    71744k free,   119660k buffers
Swap:  1020088k total,    45352k used,   974736k free,    92488k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 1228 root      18   0  3616 1292  588 R 99.9  0.3  78:45.90 lighttpd
    1 root      16   0  1624  492  460 S  0.0  0.1   0:00.77 init
    2 root      RT   0     0    0    0 S  0.0  0.0   0:00.17 migration/0
time(NULL)                              = 1183197649
poll([{fd=3, events=POLLIN}, {fd=102, events=POLLIN, revents=POLLIN|POLLHUP}, {fd=-1}, {fd=187, events=POLLIN, revents=POLLIN|POLLHUP}, {fd=112, events=POLLIN, revents=POLLIN|POLLHUP}, {fd=-1}, {fd=76, events=POLLIN, revents=POLLIN|POLLHUP}, {fd=109, events=POLLIN, revents=POLLIN|POLLHUP}, {fd=143, events=POLLIN, revents=POLLIN|POLLHUP}, {fd=183, events=POLLIN, revents=POLLIN|POLLHUP}, {fd=39, events=POLLIN, revents=POLLIN|POLLHUP}, {fd=48, events=POLLIN, revents=POLLIN|POLLHUP}, {fd=197, events=POLLIN, revents=POLLIN|POLLHUP}, {fd=106, events=POLLIN, revents=POLLIN|POLLHUP}, {fd=-1}, {fd=108, events=POLLIN, revents=POLLIN|POLLHUP}, {fd=56, events=POLLIN, revents=POLLIN|POLLHUP}, {fd=29, events=POLLIN, revents=POLLIN|POLLHUP}, {fd=104, events=POLLIN, revents=POLLIN|POLLHUP}, {fd=92, events=POLLIN, revents=POLLIN|POLLHUP}, {fd=157, events=POLLIN, revents=POLLIN|POLLHUP}, {fd=-1}, {fd=62, events=POLLIN, revents=POLLIN|POLLHUP}, {fd=202, events=POLLIN, revents=POLLIN|POLLHUP}, {fd=125, events=POLLIN, revents=POLLIN|POLLHUP}, {fd=184, events=POLLIN, revents=POLLIN|POLLHUP}, {fd=-1}, {fd=-1}, {fd=158, events=POLLIN, revents=POLLIN|POLLHUP}, {fd=77, events=POLLIN, revents=POLLIN|POLLHUP}, {fd=-1}, {fd=58, events=POLLIN, revents=POLLIN|POLLHUP}, ...], 102, 1000) = 78
ioctl(102, FIONREAD, [0])               = 0
ioctl(187, FIONREAD, [0])               = 0
ioctl(112, FIONREAD, [0])               = 0
ioctl(76, FIONREAD, [0])                = 0
ioctl(109, FIONREAD, [0])               = 0
ioctl(143, FIONREAD, [0])               = 0
ioctl(183, FIONREAD, [0])               = 0
ioctl(39, FIONREAD, [0])                = 0

Attachments

Change History

06/30/2007 09:51:44 PM changed by Olaf van der Spek

07/02/2007 11:44:30 AM changed by darix

did you use any library for the FastCGI handling like libfcgi e.g.?

07/03/2007 01:09:57 AM changed by anonymous

i use libfcgi in my app

07/03/2007 01:11:56 AM changed by ivyrake@gmail.com

Sorry for loss my name

07/03/2007 01:25:29 AM changed by ivyrake@gmail.com

Oh, I found the fixing in 1245:)

07/03/2007 03:43:46 AM changed by darix

can you test the fix in 1245 if it fixes for the issue for you?

07/03/2007 06:08:54 AM changed by ivyrake@gmail.com

ok, in 24 hours i will back.


Add/Change #1250 (High load with lighttpd + fastcgi)




Change Properties