pg.ddx.io pgsql-admin@postgresql.org mailing list archivehelp / color / mirror / Atom feed
connection from connection pool uses too much memory during the time 2+ messages / 2 participants [nested] [flat]
* connection from connection pool uses too much memory during the time @ 2008-01-30 09:53 Honza Novak <kacerr@developers.zlutazimnice.cz> 0 siblings, 1 reply; 2+ messages in thread From: Honza Novak @ 2008-01-30 09:53 UTC (permalink / raw) To: pgsql-admin Hello, I've come across this problem: We have some tomcats connecting to postgresql database using connection pools, which means, that connection gets open while tomcat first uses it and then stays open, until we stop tomcat. So far everything is fine, connection pooling works nicely. But. We have some complex queries, that probably use n times allowed work_mem. It is still not problem for us. The problem is that it looks like, that once the open connection takes some memory, it never gives that memory back, which ends up with our server swapping large amounts of memory. Am i right or wrong with my assumption? Can i somehow force open connection to release its memory? (connection is in the idle state most of the time). Any other hints? Thank you, Honza Novak ^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: connection from connection pool uses too much memory during the time @ 2008-01-30 14:53 Kevin Grittner <Kevin.Grittner@wicourts.gov> parent: Honza Novak <kacerr@developers.zlutazimnice.cz> 0 siblings, 0 replies; 2+ messages in thread From: Kevin Grittner @ 2008-01-30 14:53 UTC (permalink / raw) To: Honza Novak <kacerr@developers.zlutazimnice.cz>; pgsql-admin >>> On Wed, Jan 30, 2008 at 3:53 AM, in message <47A0490D.4020301@developers.zlutazimnice.cz>, Honza Novak <kacerr@developers.zlutazimnice.cz> wrote: > The problem is that it looks > like, that once the open connection takes some memory, it never gives > that memory back, which ends up with our server swapping large amounts > of memory. What operating system? How are you looking at the RAM usage? Many people are confused when seeing the OS cache usage when running PostgreSQL. That's normal and is not a problem. -Kevin ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2008-01-30 14:53 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2008-01-30 09:53 connection from connection pool uses too much memory during the time Honza Novak <kacerr@developers.zlutazimnice.cz> 2008-01-30 14:53 ` Kevin Grittner <Kevin.Grittner@wicourts.gov>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox