Page MenuHomePhabricator

DevServer.php goes unresponsive or takes 100% of CPU
Closed, ResolvedPublic

Description

EventLogging includes a web server intended to handle requests for its beacon image, *only* during development. I find it works for a while, then goes unresponsive.

The last time this happened it also went to 100% of my CPU. strace shows endless

recvfrom(4, "", 1024, 0, NULL, NULL)    = 0

and lsof show that file descriptor 4 is

COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
php 23276 spage 4u IPv4 1437730 0t0 TCP localhost:tproxy->localhost:40721 (CLOSE_WAIT)

Workaround: kill -9 and restart. (For some reason a regular kill doesn't take, despite the code to "exit cleanly on SIGTERM".)


Version: unspecified
Severity: minor

Details

Reference
bz42753

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 12:50 AM
bzimport set Reference to bz42753.

[moving from MediaWiki extensions to Analytics product - see bug 61946]