From: Honza Novak <kacerr@developers.zlutazimnice.cz>
To: pgsql-admin@postgresql.org
Subject: connection from connection pool uses too much memory during the time
Date: Wed, 30 Jan 2008 10:53:17 +0100
Message-ID: <47A0490D.4020301@developers.zlutazimnice.cz> (raw)
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: kacerr@developers.zlutazimnice.cz
Subject: Re: connection from connection pool uses too much memory during the time
In-Reply-To: <47A0490D.4020301@developers.zlutazimnice.cz>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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