Re: psycopg2 hang with multithread frequent queries
От | Federico Di Gregorio |
---|---|
Тема | Re: psycopg2 hang with multithread frequent queries |
Дата | |
Msg-id | 5053648F.4090005@dndg.it обсуждение исходный текст |
Ответ на | Re: psycopg2 hang with multithread frequent queries (David Roid <dataroid@gmail.com>) |
Список | psycopg |
On 14/09/2012 18:55, David Roid wrote: > And there are two kind of symptons after the process running for a > couple of minutes: > (0. At first it seems ok, each thread does its job, the quick one with > more logs of course) > 1. The quick one keeps running, the other two get no chance being called > any more > 2. When one of the slow ones get called, the whole python process hang, > with the postgresql process in 'idle in transaction'; note i'm very > alert with psycopg2's all-in-transaction style, i'm very sure there is a > commit/rollback to end the trac, the python process just stucks! > > I'm doing this test/investigate with freeload, so CPU/code conditions > should not be a cause, i'm starting to suspect psycopg2 or postgresql, > any hint? How many connections are you using? Cursors? Do you commit or keep a very long running transaction? Please give us some more information and compile psycopg with debugging enabled to have the logs ready for analsys. federico -- Federico Di Gregorio federico.digregorio@dndg.it Studio Associato Di Nunzio e Di Gregorio http://dndg.it There's no greys, only white that's got grubby. I'm surprised you don't know that. And sin, young man, is when you treat people as things. Including yourself. -- Granny Weatherwax
В списке psycopg по дате отправления: