Re: Prepared statement leak
От | Oliver Jowett |
---|---|
Тема | Re: Prepared statement leak |
Дата | |
Msg-id | 4432F421.2030402@opencloud.com обсуждение исходный текст |
Ответ на | Prepared statement leak (Peter Eisentraut <peter_e@gmx.net>) |
Список | pgsql-jdbc |
Peter Eisentraut wrote: > We seem to have identified a prepared statement leak in the JDBC driver. The > actual application runs through Hibernate, so we have attempted to isolate > the problem here. In the field, the problem causes the PostgreSQL server to > run out of memory in linear time. If you force a full GC on the Java side (i.e. call System.gc()), does the driver clean up those leaked statements on the next query? In theory, if the driver leaks references to a server-side prepared statement it should reclaim the server statements when weak references next get collected, which may take some time if the Java side is not generating much garbage (weak references only get collected on a full GC). Obviously we don't want to leak them in the first place, but I put that mechanism in place in case we did. -O
В списке pgsql-jdbc по дате отправления: