Home > Archive > Slony1 PostgreSQL Replication > September 2005 > "realloc() - Cannot allocate memory" errors









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author "realloc() - Cannot allocate memory" errors
Philip Warner

2005-09-12, 7:26 am


We're seeing a few of these and wondering (a) if they are a known
problem and (b) what we should do to help track it down if it is not a
known problem:

2005-09-12 12:22:14 EST FATAL dstring_addchar: realloc() - Cannot
allocate memory2005-09-12 12:22:14 EST DEBUG1 slon: shutdown requested

2005-09-12 14:00:49 EST FATAL dstring_nappend: realloc() - Cannot
allocate memory2005-09-12 14:00:49 EST DEBUG1 slon: shutdown requested
Philip Warner

2005-09-12, 7:26 am

Philip Warner wrote:

>2005-09-12 12:22:14 EST FATAL dstring_addchar: realloc() - Cannot
>allocate memory2005-09-12 12:22:14 EST DEBUG1 slon: shutdown requested
>
>

Further to this; the virtual mem size of the process is about half a gig
when it dies...so it looks like some kind of leak.
Darcy Buskermolen

2005-09-12, 11:24 am

On Monday 12 September 2005 00:16, Philip Warner wrote:
> Philip Warner wrote:
>
> Further to this; the virtual mem size of the process is about half a gig
> when it dies...so it looks like some kind of leak.


is there any possibility you could run this under valgrind and report what you
see?

>
>
> ____________________
____________________
_______
> Slony1-general mailing list
> Slony1-general- AuKwsB3Fm+ugFIWk8tvy
RWD2FQJk+8+b@public.gmane.org
> http://gborg.postgresql.org/mailman.../slony1-general


--
Darcy Buskermolen
Wavefire Technologies Corp.

http://www.wavefire.com
ph: 250.717.0200
fx: 250.763.1759
Philip Warner

2005-09-12, 1:23 pm

Darcy Buskermolen wrote:

> is there any possibility you could run this under valgrind and report
> what you
>
>see?
>
>

I'd be happy to but the server is FreeBSD and the port of valgrind core
dumps. Is there another tool I can use on FreeBSD?
Philip Warner

2005-09-13, 3:24 am


A clever person got valgrind running for me; but I just realized that
the process that leaks is the child process; will valgrind be useful here?


Darcy Buskermolen wrote:

>On Monday 12 September 2005 00:16, Philip Warner wrote:
>
>
>
>is there any possibility you could run this under valgrind and report what you
>see?
>
>

Philip Warner

2005-09-13, 3:24 am


Output is attached...let me know if you want me to run it for longer...


Darcy Buskermolen wrote:

>On Monday 12 September 2005 00:16, Philip Warner wrote:
>
>
>
>is there any possibility you could run this under valgrind and report what you
>see?
>
>

____________________
____________________
_______
Slony1-general mailing list
Slony1-general- AuKwsB3Fm+ugFIWk8tvy
RWD2FQJk+8+b@public.gmane.org
http://gborg.postgresql.org/mailman.../slony1-general



Philip Warner

2005-09-13, 8:24 pm

Darcy Buskermolen wrote:

>On Monday 12 September 2005 00:16, Philip Warner wrote:
>
>
>
>is there any possibility you could run this under valgrind and report what you
>see?
>
>


I am beginning to think this relates to the size of the update. I now
have a situation where it crashes almost immediately on startup every time.

I have tried setting the group size to 1, but it still dies. Anyone have
some suggestions?
Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com