From: | Angelo Nicolosi <amenuor(at)hotmail(dot)com> |
---|---|
To: | <pgsql-jdbc(at)postgresql(dot)org> |
Subject: | Re: OOM on large SELECT |
Date: | 2009-09-16 15:47:14 |
Message-ID: | SNT114-W97B54F73D70DF4C7BD81FA0E20@phx.gbl |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
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 cachedMem: 2010 664 1345 0 157 383-/+ buffers/cache: 123 1886Swap: 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!
Cheers,Angelo.
> Date: Thu, 17 Sep 2009 03:14:31 +1200
> From: oliver(at)opencloud(dot)com
> To: amenuor(at)hotmail(dot)com
> CC: pgsql-jdbc(at)postgresql(dot)org
> Subject: Re: [JDBC] OOM on large SELECT
>
> Angelo Nicolosi wrote:
>
> > The dmesg command says:
> >
> > Out of memory: Killed process 22592 (postgres).
>
> If you are getting OOM-kills from the kernel, that usually means you
> have system-wide memory exhaustion.
>
> > I wrote some C-Language functions, added on a database [...]
>
> Since the size of a JVM is roughly constant, I would guess that the
> problem actually lies in your C code.
>
> Alternatively your system just doesn't have enough virtual memory
> configured to do whatever it is you're trying to do. Add more swap.
>
> Either way, it doesn't look like a JDBC driver problem based on the
> information you have given.
>
> -O
>
> --
> Sent via pgsql-jdbc mailing list (pgsql-jdbc(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-jdbc
_________________________________________________________________
Le tue Emoticon ti sembrano poche? Scaricane di nuove!
http://intrattenimento.it.msn.com/emoticon/
From | Date | Subject | |
---|---|---|---|
Next Message | John R Pierce | 2009-09-16 16:30:59 | Re: OOM on large SELECT |
Previous Message | Oliver Jowett | 2009-09-16 15:14:31 | Re: OOM on large SELECT |