GoogleCloudPlatform / appstart

Tool for running a GAE MVM emulation environment.
Apache License 2.0
12 stars 11 forks source link

Consumes all CPU repeatedly polling for modified files. Will start a fire! #11

Closed bmenasha closed 9 years ago

bmenasha commented 9 years ago

running

appstart run app.yaml

the dev_appserver.py container is consuming all the CPU and heating the world.

It's constanly looping through:

google.appengine.tools.devappserver2.module.ExternalModule.handle_changes

This function returns immediately, but the outer loop "_loop_watching_for_changes" clearly expects it to pause for the supplied number of milliseconds before returning.

That it doesn't pause and immediately returns caused my poor laptop to fail due to thermal fault.

Thanks for looking into it.

mindhog commented 9 years ago

I'm able to reproduce this - it looks like devappserver is spinning.

I'll have to take a look at the devappserver code and see what's going on.

mindhog commented 9 years ago

Fix in 2371ff, awaiting PR/16

mindhog commented 9 years ago

Merged with master.