Re: [Twisted-Python] 100% CPU on high opened descriptors

2011-05-19 Thread Luke Marsden
Hi Juan, You could try: print reactor.__class__ This should allow you to check that the twistd command-line argument is working. Example: luke@pow:~$ twistd -noy foo.py |head -n 1 luke@pow:~$ twistd -r poll -noy foo.py |head -n 1

Re: [Twisted-Python] 100% CPU on high opened descriptors

2011-05-19 Thread Reza Lotun
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 Jua

Re: [Twisted-Python] 100% CPU on high opened descriptors

2011-05-19 Thread Juan Antonio Ibañez Santorum
Is there any way to check if it is using the the poll/epoll reactor? Regards 2011/4/26 Luke Marsden > 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