Re: Increasing maximum connection for postgresql 9.2

From: Amardeep Kaur <amardeepkaur88(at)gmail(dot)com>
To: Venkata Balaji Nagothi <vbnpgc(at)gmail(dot)com>
Cc: Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at>, "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Increasing maximum connection for postgresql 9.2
Date: 2014-02-27 12:53:58
Message-ID: CAJ1JmhXQSGUnt0d7rFSx++aPB6fP1Db1DFkR-YkCKTsScO3uzA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi Guys

I actually saw the straight message "database is in recovery mode" in the
logs. I checked syslog and the problem was we were running out of RAM.

Thanks again for the help.

-Amardeep

On Wed, Feb 26, 2014 at 10:03 PM, Venkata Balaji Nagothi
<vbnpgc(at)gmail(dot)com>wrote:

>
>
> On Sat, Feb 22, 2014 at 12:37 AM, Amardeep Kaur <amardeepkaur88(at)gmail(dot)com>wrote:
>
>> The error is
>> *could not receive data from client: Connection reset by peer*
>> followed by
>> *incomplete startup packet*
>>
>
> True. As mentioned up the thread, this does not mean that the database is
> in the recovery mode. If the database is in recovery mode, you would see a
> straight forward message in the logs saying that the "database is in
> recovery mode".
>
> Please help us know how the connections or requests are sent to database
> from Application. Is there anything you could see in Application/client
> site logs ?
>
> Things to be identified : If there are any unexpected connection
> drops/hangs ? do you see any unexpected load spike on DB server ? Network
> level issues etc.
>
> Venkata Balaji N
>
> Sr. Database Administrator
> Fujitsu Australia
>
>>
>>
>> -Amardeep
>>
>>
>> On Fri, Feb 21, 2014 at 10:20 AM, Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at>wrote:
>>
>>> Amardeep Kaur wrote:
>>> > I am trying to increase the max_connection from 100 to 5000. I
>>> modified shared_buffer and changed
>>> > kernel parameters according to
>>> >
>>> http://www.postgresql.org/docs/9.2/static/kernel-resources.html#SYSVIPC.
>>>
>>> As has been mentioned, that is too much.
>>> There is also an interesting article on the Wiki:
>>> http://wiki.postgresql.org/wiki/Number_Of_Database_Connections
>>>
>>> > When i stress test it with 500 concurrent request, then after 150 -
>>> 160 concurrent connections my
>>> > database enters into recovery mode and it fails the request. For my
>>> stress test i am trying to get
>>> > data from one table.
>>> >
>>> > Do you guys have any idea what is causing the problem or if i am
>>> missing some other configuration?
>>>
>>> The database does not go into recovery mode just like that.
>>> Look into the database log and see if you can find the appropriate
>>> messages, then
>>> we can figure out what caused the problem.
>>>
>>> Yours,
>>> Laurenz Albe
>>>
>>
>>
>>
>> --
>> Amardeep Kaur
>> 8130553685
>>
>
>

--
Amardeep Kaur
8130553685

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Kevin Grittner 2014-02-28 21:39:40 Re: Autovacuum progressing slow (with high activity on the system).
Previous Message Viktor 2014-02-27 08:26:19 Re: PostgreSQL 9.3: monitor read vs write activity