On my development environment i am using psycopg2 in production pg8000, and im not using db cache anywhere
El viernes, 14 de octubre de 2016, 10:07:43 (UTC-5), Paolo Valleri escribió: > > Which driver are you using for postgres? Are you using cache in models? > Try to figure out if there are controllers using more memory than others. > > > On Friday, October 14, 2016 at 4:03:20 AM UTC+2, Anthony wrote: >> >> That's a lot of code to review. You're probably going to have to do some >> digging and narrow it down for us. I did see one problem, though: >> >> class IS_BARCODE_AVAILABLE(object): >> T = current.T >> >> You can't use current in a class attribute (for the same reason it can't >> be used at the top level of a module -- it's value will be fixed at the >> first import, though it is a thread-local object that should change with >> every request). >> >> Anthony >> >> On Thursday, October 13, 2016 at 9:28:44 PM UTC-4, dan...@betanetweb.com >> wrote: >>> >>> Hello im an developing an opensource POS (link >>> <https://github.com/francisco-betancourt/ctrlpyme4>) using web2py, >>> everything is fine except that on my development environment and in a >>> production server, my app memory usage grows without limits, it does not >>> crash the server however sometimes i get python MemoryError's, things like >>> error: >>> unpack_from requires a buffer of at least 5 bytes >>> <https://piorinails.com.mx/admin/errors/txc#> or postgres memory errors >>> in the production server, in my development environment i see the memory >>> grow by 3 to 6 MB for every request, i dont know what is causing this >>> behavior, i am not using caching. any help appreciated. >>> >> -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.