From: | Jeff Davis <pgsql(at)j-davis(dot)com> |
---|---|
To: | James Im <im-james(at)hotmail(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Controlling memory of session |
Date: | 2007-01-17 18:23:22 |
Message-ID: | 1169058202.18903.4.camel@dogma.v10.wvs |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Wed, 2007-01-17 at 11:02 +0000, James Im wrote:
> Hi,
>
> I'm using Postgresql 8.1 on windows2000 and I have a hard time
> understanding how to limit the memory of the sessions to 1 MB.
>
> What I have right now is that each connection (opened with jdbc) takes
> about 3MB (some take a little more, some a little less). I think that
> this is a waste of memory (am-I wrong?).
How are you measuring the memory usage? What is your shared_buffers
setting?
The shared_buffers are only allocated once for all processes, but
because there's no way to tell which process is using the memory
(because it's shared), "top" reports that each process is using the
entire shared buffers, plus all it's private memory.
So, when a new connection is established, it might not actually be using
3MB more than before.
Regards,
Jeff Davis
From | Date | Subject | |
---|---|---|---|
Next Message | Martijn van Oosterhout | 2007-01-17 18:35:13 | Re: Speed of postgres compared to ms sql, is this article/comment |
Previous Message | Stéphane Schildknecht | 2007-01-17 18:13:48 | pg_dump without oids |