Description
I don't have a good repro for this, but I have observed CPU usage going through the roof on my web server. It starts out fine: 27 threads (as reported by top) and 0% CPU. Then I click on a thingy which opens up two server-sent events causing 2 tasks to spawn. Threads goes to 29 and CPU to 200%. Then I start up two more SSEs and threads goes to 35 and CPU to 400%. This can go on even further but my Mac starts sounding like a turbine engine at that point.
It's a fairly complex exe with lots of tasks, and tasks that block, but there's nothing special about the SSEs: several are spawned when a client first connects to the server. Haven't been able to glean as much about the state of the world using Apple's Instruments as I'd like, but memory is fine and there don't seem to be any functions or threads sucking up CPU.
This leads me to think that the problem might be lock contention. Or possibly #3095, but I very much doubt that my tasks are doing much of anything at all (and Instruments backs that up).
This was on an 8-core Mac with rust from Sep 22, 2012.