Can you not do a: from twisted.python import log from twisted.internet import reactor log.msg('My reactor is: %r' % repr(reactor)) somewhere in your code to determine it? Are you running your application with twistd? You can pass a reactor implementation via the '-r' option. Reza 2011/5/19 Juan Antonio Ibañez Santorum <juanito1982@gmail.com>:
Is there any way to check if it is using the the poll/epoll reactor? Regards
2011/4/26 Luke Marsden <luke-lists@hybrid-logic.co.uk>
On Tue, 2011-04-26 at 17:42 +0200, Juan Antonio Ibañez Santorum wrote:
Hello! I have a Linux box serving my twisted app. All works ok except after some days running (where I can see my CPU going to 100%). I saw that CPU goes 100% usage when the app reaches to 1024 opened descriptors (sockets).
You can also switch to using the "poll" reactor, which will allow you to sustain more than 1024 connections. You should still figure out what is keeping your connections open and find a way to reap them however, as this will just delay the problem. As Glyph suggested an application level "ping" may help here.
In the mean-time you can switch to the poll reactor by adding "-r poll" to your twistd command.
-- Best Regards, Luke Marsden CTO, Hybrid Logic Ltd.
Web: http://www.hybrid-cluster.com/ Hybrid Web Cluster - cloud web hosting
Phone: +447791750420
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
-- Reza Lotun mobile: +44 (0)7521 310 763 email: rlotun@gmail.com work: reza@tweetdeck.com twitter: @rlotun