WebFaction
Community site: login faq

Could anybody help me, my webpy app using about 200MB memory when we upload file with size of 30KB? Even upload is finish, it still span 170MB of memory.

Thank you in advance.

asked 04 Jul '12, 03:56

widoyo
12
accept rate: 0%


You can use a tool like Pympler to profile the memory usage of your application.

I don't have a specific example of how to do this with web2py, but the following links should get you going in the right direction:

Hope that helps!

permanent link

answered 04 Jul '12, 14:36

seanf
12.2k41836
accept rate: 37%

Thanks seanf, at my development showing no significant memory increase when data file uploaded into my webpy app. I uploaded 20 files with delay 15 seconds on each upload. The lowest memory used is 12.54MB and highest is 14.19MB.

I use memory_profiler http://pypi.python.org/pypi/memory_profiler

(04 Jul '12, 18:54) widoyo

Ok, if you hook your profiler into mod_wsgi as middleware in front of your app, then you should be able to see where your memory usage is coming from on your production site.

(05 Jul '12, 20:14) seanf
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×87
×3

question asked: 04 Jul '12, 03:56

question was seen: 2,374 times

last updated: 05 Jul '12, 20:14

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM