google-code-export / appengine-devappserver2-experiment

Automatically exported from code.google.com/p/appengine-devappserver2-experiment
0 stars 0 forks source link

High CPU usage even though idle #44

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Start devappserver2 on my project
2. Observe CPU usage in Activity Monitor

What is the expected output? What do you see instead?

One would expect an idle server to not use a great deal of CPU resources.

Activity Monitor indicates that the Python process is constantly registering 
approximately 40% CPU resources, across 109 threads.

I have attached the results of Activity Monitor -> Sample Process.

During the sampled time period, devappserver2 was idle (i.e. no connections 
were made, no tasks running).

What version of the product are you using? On what operating system?

$ cat ~/GitRepos/appengine-devappserver2-experiment/VERSION
release: "1.7.5"
timestamp: 1357690550
api_versions: ['1']

$ uname -a
Darwin B20.local 12.2.1 Darwin Kernel Version 12.2.1: Thu Oct 18 12:13:47 PDT 
2012; root:xnu-2050.20.9~1/RELEASE_X86_64 x86_64

(Mac OS X 10.8.2)

Please provide any additional information below.

I am happy to provide any information you believe may be of assistance.

Original issue reported on code.google.com by brianmh...@gmail.com on 22 Feb 2013 at 3:36

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by bquin...@google.com on 25 Feb 2013 at 5:19

GoogleCodeExporter commented 9 years ago
I still have the same problem in 1.8.0

Original comment by i...@bugsense.com on 14 May 2013 at 5:42

GoogleCodeExporter commented 9 years ago
I can confirm that as of GAE 1.8.0, the thread count is seems quite reasonable.

There continues to be high CPU usage, which I believe can be predominantly 
attributed to the mtime-based file watcher for Mac OS X - particularly when you 
get up to around 10,000 files.

I have filed a bug report for that particular issue, here:

    https://code.google.com/p/googleappengine/issues/detail?id=9300

Original comment by brianmh...@gmail.com on 14 May 2013 at 7:44