[Twisted-web] 100% CPU; what are my options?

Colin karnaugh at karnaugh.za.net
Sun Jan 3 01:20:52 EST 2010


On Sun, Jan 3, 2010 at 5:26 AM, Leif K-Brooks <eurleif at gmail.com> wrote:

> Hey,
>
> I operate Omegle (http://omegle.com/), which is a COMET-driven
> Twisted.Web app. (It doesn't use Nevow or anything; just Twisted.Web.)
> It gets fairly heavy traffic; right now, it peaks daily at around 6500
> concurrent users. Technical details:
>

You should write a success story! I've used Omegle when the boredom hits
hard.


>
> - Hosted on a Linode 2880 virtual private server
> (https://www.linode.com/); Ubuntu, 2880 MB of RAM, 4 cores available
> - EPollReactor
>
> Omegle currently runs at close to 100% CPU for most of the day, and
> I'm a bit concerned about that.
>
>
Try use the standard reactor instead of epoll. I found a similar problem
when I switched my product to the epoll reactor, the cpu usage problem went
away when I reverted back to the normal reactor.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-web/attachments/20100103/92ff83ab/attachment.htm 


More information about the Twisted-web mailing list