[Tutor] Simple flask app querying twitter keeps crashing.

Alan Gauld alan.gauld at yahoo.co.uk
Fri Jan 26 07:50:15 EST 2018


On 26/01/18 12:31, jimmy connelly wrote:
> Hello I have a very simple Flask app for fetching tweets from twitter...
> ...
> It runs great for a number of hours then crashes.

Caveat, I'm in a hurry and haven't looked at your code.
But when things run fine for a long time then crash my
first instinct is to think "memory leak".

You don't specify OS but if it is *nix like then it
probably has vmstat so try running it with, say, a 1 minute
delay and log the output to a file. Then see if the memory
is being consumed.

Or use top or ps whatever other memory monitor you have.

Just a thought.

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos




More information about the Tutor mailing list