python process consumes 100% cpu

77 views
Skip to first unread message

St. Pirsch

unread,
Jul 30, 2016, 2:22:17 PM7/30/16
to web2py-users
Hi all,
running web2py.py 2.14.6 on a mac 10.11.6 gets me constantly a 100% cpu usage on python. Is this a known issue & is there a solution?
Thanks - Stephan

Massimo Di Pierro

unread,
Jul 31, 2016, 2:40:58 AM7/31/16
to web2py-users
Not a known issue. Do you have the same problem if you run from source?

St. Pirsch

unread,
Jul 31, 2016, 4:57:57 AM7/31/16
to web...@googlegroups.com
Yes, I'm running from source stp$ python2.7 /Users/stp/Sites/web2py/web2py.py
After starting the server, the python process climbs to 100% cpu within a minute or so and stays there, even though the server is idle.  

St. Pirsch

unread,
Jul 31, 2016, 7:47:57 AM7/31/16
to web2py-users
Yes, I'm running from source stp$ python2.7 /Users/stp/Sites/web2py/web2py.py
After starting the server, the python process climbs to 100% cpu within a minute or so and stays there, even though the server is idle.  
The Task stats look like this:
% cpu 99,93 
Threads: 7 Readingacesses: 106 Ports: 167, CPU Time: 40:31,72 process changes: 216261 Errors: 10123684 Mach Syscalls: 63753 Unix syscalls: 187562

Kiran Subbaraman

unread,
Jul 31, 2016, 10:56:54 AM7/31/16
to web...@googlegroups.com
Can you try running web2py without the GUI option `--nogui`
python web2py.py --nogui --port= 8080 --ip=127.0.0.1 --password='<ask>'
Command line options, in case you want to refer to them: http://www.web2py.com/books/default/chapter/29/04/the-core#Command-line-options

Do you see the CPU issue with this?
________________________________________
Kiran Subbaraman
http://subbaraman.wordpress.com/about/
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

St. Pirsch

unread,
Jul 31, 2016, 11:20:07 AM7/31/16
to web2py-users
Hey Kiran,
you are right, without the GUI there's virtually no CPU load. I suppose it's a general issue on mac.
Thank You !

Kiran Subbaraman

unread,
Aug 1, 2016, 12:08:39 AM8/1/16
to web2py-users
That's good to know. You could take a look at this page: https://www.python.org/download/mac/tcltk/ to understand if there are Tcl/Tk issues related to your environment. This may solve the CPU issue ... am not sure.

St. Pirsch

unread,
Aug 1, 2016, 4:28:01 AM8/1/16
to web...@googlegroups.com
Thanks!. I tested the web2py gui on a different mac machine with 10.11.5 & it's running hot as well. I'am going to try it with the Tcl/Tk versions recommended in your link instead of the ones provided by the OS.

You received this message because you are subscribed to a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/LLaKw_-V_qU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
--
St. Pirsch
0151 280 350 74

Reply all
Reply to author
Forward
0 new messages