On 24/10/16 23:44, Ryan Pessa wrote:
I’m having issues with proton consuming a lot of CPU, at or close to
100% of a core. This is with an exchange which is mostly silent (1
health message, around 200-300 bytes, sent every 30 seconds), and
happening with python-qpid-proton==0.14.0 on both OS X 10.12 and Centos 7.



99.3% CPU usage on OS X (brew Python 3.5):

27322 ryan.pess  24   0 2411M 31724 ? 99.3  0.2  1:23.96
/usr/local/Cellar/python3/3.5.2_1/Frameworks/Python.framework/Versions/3.5/Resources/Python.app/Contents/MacOS/Python
/Users/ryan.pessa/Library/A



99.7% CPU usage on Centos (system Python 3.4):

   27 root      20   0  240500  24380   5852 S  99.7  0.6   0:49.91
python3.4



The application is a simple Container with a MessagingHandler:
Container(Receiver(…)).run()



For debugging purposes, I commented out all of the handlers on Receiver
(our MessagingHandler subclass), but that had no effect. Still ~100% CPU
usage. The CPU usage is high as soon as the application starts, even
before receiving any messages. The same does not happen with qpid-python.

If you set the environment variable PN_TRACE_FRM=1, what do you see? Can you isolate a simple reproducer?



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to