“Exceeded soft private memory limit” when upload (1.56M) on GAE

112 views
Skip to first unread message

Lio

unread,
Apr 16, 2013, 10:25:16 PM4/16/13
to web...@googlegroups.com
Hello,

Today the first time I got 500 Server Error when trying to upload a file of 1.56MB as a field of a record in a table. When checking GAE logs it shows "Exceeded soft private memory limit with 20x.xxx MB after servicing XXX requests total" every time I tried to upload the same file. 

I've done the same operation several time without any problem, I guess it's very likely caused by the file size, so I reduced the file size to less than 600K then the uploading succeeded. 

My question is what is the limit of upload file size and also in case I really need to upload a big file what could be the solution?

Thanks for advice.

Christian Foster Howes

unread,
Apr 18, 2013, 11:23:26 AM4/18/13
to web...@googlegroups.com
Lio,

there are potentially 2 problems here:
 - the request thread is using too much memory/has a memory lead
 - the size of the file is too large.

i know you are having the second problem, not sure about the first.  it's possible that the second problem is being reported to you with a mis-leading message.

as for the file size, i am assuming that you are trying to store the file directly on a row in the table.  Remember that on GAE, when using the datastore, each row is limited to 1MB total, and any given field is limited to 1MB (which you can only achieve if the row contains 1 field).

To grow past this limitation, look into the GAE blobstore for storing large files.  you also can write tools that upload the file to some other location (google cloud storage, amazon S3) and store the link to the file in your table.

hope that helps!

cfh

冷春辉

unread,
Apr 18, 2013, 11:42:39 AM4/18/13
to web...@googlegroups.com
Hello Christian,

Thank you very much for explaining. The reason is clear to me now. I will try to work around it.

Regards,
Lio


--
 
---
You received this message because you are subscribed to a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/NTtV2sOI6Ss/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages