This is what I observed after debugging my blog app while working on this previous question.
Link : Having Problems with Django Context Processors
While debugging my blog app, I found out if I refresh the page once, it responds normally. But when I refresh it thrice or maybe more it gives me errors with large number of request size, CPU time and voluntary/involuntary context switches. Eventually leaving me with a fail to allocate memory error about which I am still concerned.
I guess on the server side, processing the request does not stop when I load the page more than once. Hence I get thousands of context switches and large total CPU time with errors.
Basically its like a DDoS attack on very very small scale. My app would definitely crash if its on a large scale.
Is there any way that I can design my blog app so that it responds to only one request at a time? Or is there any other possible solution to my problem ?