Python 2.6 causes 100% CPU usage in some areas
Posted: April 8th, 2009, 11:43 am
Since at least 0.4.7 and Ubuntu Jaunty (testing) SABnzbd+ shoots to 100% CPU usage and the webGUI becomes unresponsive when using Python 2.6 (default for Jaunty). This problem does not exist when forcing SABnzbd+ to use Python 2.5.
This can be reproduced by doing at least the following:
1) Change server properties and hit save, the gui becomes unresponsive and the SABnzbd+ process shoots to 100% (the settings are applied in the config file, though)
2) Hit 'Shutdown', 'Initiating shutdown...' is displayed, but 'SABnzbd-0.4.8 shutdown finished' never shows, again the process shoots to 100%
Python versions: Python 2.5.4 and Python 2.6.2c1
OS: Ubuntu Jaunty (9.04) x86_64
A minor issue is that a deprecation warning is printed for cherrypy/lib/cptools.py and cherrypy/filters/sessionfilter.py that the modules md5 and sha are to be replaced by hashlib
This can be reproduced by doing at least the following:
1) Change server properties and hit save, the gui becomes unresponsive and the SABnzbd+ process shoots to 100% (the settings are applied in the config file, though)
2) Hit 'Shutdown', 'Initiating shutdown...' is displayed, but 'SABnzbd-0.4.8 shutdown finished' never shows, again the process shoots to 100%
Python versions: Python 2.5.4 and Python 2.6.2c1
OS: Ubuntu Jaunty (9.04) x86_64
A minor issue is that a deprecation warning is printed for cherrypy/lib/cptools.py and cherrypy/filters/sessionfilter.py that the modules md5 and sha are to be replaced by hashlib