Protect the system from buggy apps

Bug #986725 reported by Navraj Chohan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
AppScale
New
Undecided
Unassigned

Bug Description

The following lines of code in my test app was able to take up all the CPU (4 cores at 100 percent even after the requests had stopped):

    greetings = db.GqlQuery("SELECT * "
                            "FROM Greeting "
                            "ORDER BY date DESC")
    results = greetings.fetch(limit=1000)
    while len(results) != 0:
      results = greetings.fetch(limit=1000)

Where I already created 1000 items before hand. We want to detect when an application has gone rouge and report it to the sys admin when using too many resources.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.