Re: 8.2.3: Server crashes on Windows using Eclipse/Junit

From: Rainer Bauer <usenet(at)munnin(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: 8.2.3: Server crashes on Windows using Eclipse/Junit
Date: 2007-10-20 11:22:56
Message-ID: tuojh35o21aa7akl335f5ulo25b0go6d69@4ax.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

"Magnus Hagander" wrote:

>> - Max_connections is set to 500. I did that originally because I kept
>> seeing a message about no connection available and I thought it was
>> because I was not allocating enough connections. My machine has 2GB of RAM.
>
>There's your problem. 500 is way above what the windows version can handle. IIRC the hard max is somewhere around 200 depending on some OS factors that we don't entirely know. I'd never recommend going above 100-150. With no more than 2Gb ram, not above 100.

My guess is that Windows is running out of handles. Each backend uses about
150 handles. 100 Backends means 15000 handles. Depending how many other
programs are currently running the no. of startable backends will vary
depending on the total handle limit Windows imposes.

Rainer

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Merlin Moncure 2007-10-20 12:33:17 Re: uniquely indexing Celko's nested set model
Previous Message Magnus Hagander 2007-10-20 06:23:48 Re: 8.2.3: Server crashes on Windows using Eclipse/Junit

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2007-10-20 14:14:26 Re: [HACKERS] Why copy_relation_data only use wal whenWALarchivingis enabled
Previous Message Martijn van Oosterhout 2007-10-20 08:30:43 Re: Including Snapshot Info with Indexes