Re: [flask] Normal memory consumption for flask apps?
- From:
- Armin Ronacher
- Date:
- 2011-10-19 @ 16:11
Hi,
On 2011-10-19 3:43 PM, Viktor Forsman wrote:
> I've written my first web application ever using Flask. Basically I, I'm
> using the tools that are introduced in the tutorial. My question is how
> much memory a process of a relativly simple flask app should consume? I
> have deployed my app using mod_wsgi and each process takes about 30
> megabyte. The app submitts data to a sqlite database and uses that to
> make a plot using matplotlib.
First of all: how are you measuring memory. Is that private memory or
does that also include shared memory? Is that a 32bit or a 64bit
operating system? What UCS version does your Python interpreter have.
Nothing can be said about memory consumption in general without knowing
these things.
Regards,
Armin
Re: [flask] Normal memory consumption for flask apps?
- From:
- Viktor Forsman
- Date:
- 2011-10-20 @ 12:37
Thanks for the reply. I will answer your questions as best as I can.
I'm deploying my app on webfaction and I'm measuring how much memory it
consumes by looking at the resident set size of the httpd.worker process. It
is run on a 32-bit OS and the python interpreter is built with UCS2.
/Viktor
2011/10/19 Armin Ronacher <armin.ronacher@active-4.com>
> Hi,
>
> On 2011-10-19 3:43 PM, Viktor Forsman wrote:
> > I've written my first web application ever using Flask. Basically I, I'm
> > using the tools that are introduced in the tutorial. My question is how
> > much memory a process of a relativly simple flask app should consume? I
> > have deployed my app using mod_wsgi and each process takes about 30
> > megabyte. The app submitts data to a sqlite database and uses that to
> > make a plot using matplotlib.
> First of all: how are you measuring memory. Is that private memory or
> does that also include shared memory? Is that a 32bit or a 64bit
> operating system? What UCS version does your Python interpreter have.
>
> Nothing can be said about memory consumption in general without knowing
> these things.
>
>
> Regards,
> Armin
>