From: John R Pierce <pierce@hogranch.com>
To: Angelo Nicolosi <amenuor@hotmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: OOM on large SELECT
Date: Wed, 16 Sep 2009 09:30:59 -0700
Message-ID: <4AB112C3.1050809@hogranch.com> (raw)
In-Reply-To: <SNT114-W97B54F73D70DF4C7BD81FA0E20@phx.gbl>
References: <SNT114-W4952152D7DBA88FD891FAFA0E20@phx.gbl>
<4AB100D7.60805@opencloud.com>
<SNT114-W97B54F73D70DF4C7BD81FA0E20@phx.gbl>
Angelo Nicolosi wrote:
> It's possible that the problem is in my C code but every time that I'm
> allocating memory, using always the palloc() function, I'm always
> calling the pfree().
> There is some way to analyze the code meanwhile is working inside the
> Postgre server (something like valgrind)?
> However the command free -m on my machine outputs:
>
> total used free shared buffers cached
> Mem: 2010 664 1345 0 157 383
> -/+ buffers/cache: 123 1886
> Swap: 16386 41 16345
>
> I think that the swap is enough.
> Could you give me some tips about how can I see where is the problem?
> Thank you for your help!
do you know what query you were making when you ran out of memory? it
-appears- it was a postgres server process that was OOM'd.
what OS and version are you on (OOM seems to imply its likely linux,
since no other OS I'm familiar with would randomly kill processes like
that), what version postgres, etc ?
also, what are the various memory settings in your postgresql.conf
(shared_buffers, work_mem, etc)
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: pierce@hogranch.com, amenuor@hotmail.com
Subject: Re: OOM on large SELECT
In-Reply-To: <4AB112C3.1050809@hogranch.com>
References: <SNT114-W4952152D7DBA88FD891FAFA0E20@phx.gbl> <4AB100D7.60805@opencloud.com> <SNT114-W97B54F73D70DF4C7BD81FA0E20@phx.gbl> <4AB112C3.1050809@hogranch.com>
* 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