pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: postgresql@thomasbache.de
To: pgsql-admin@postgresql.org
Subject: "too many clients" and no cure
Date: Wed,  1 Dec 2004 17:15:38 +0100 (CET)
Message-ID: <20041201161538.C5EBB6EC064@digi1.shellsystem.de> (raw)

Hi,

I experience some trouble with my PG server. I get the error message
"too
many clients". Ok, so I checked the manual and adjusted the
max_connections and shared_buffers, but still the server denies access,
if
there are about 100 connections. I just recently increased the shared
buffers from 10000 to 50000 and the system shared memory fom 128m to
about
800m. Still the error occurs at 100 active connections.

Here's some system info:
OS is SuSE Linux 9.1 (kernel 2.6.7-040722)
I have 1GB of RAM.
PG is 7.4.2
Parameters in postgresql.conf:
max_connections = 500
shared_buffers = 50000
sort_mem = 2048

sysctl -a | grep shm
kernel.shmmni = 134217728
kernel.shmall = 805306368
kernel.shmmax = 805306368

ipcs -ls
------ Semaphore Limits --------
max number of arrays = 128
max semaphores per array = 250
max semaphores system wide = 32000
max ops per semop call = 100
semaphore max value = 32767

Thanks,
Tom





view thread (5+ messages)  latest in thread

Message-ID: <20041201161538.C5EBB6EC064@digi1.shellsystem.de>
Permalink:  ../20041201161538.C5EBB6EC064@digi1.shellsystem.de/
Also on:    postgresql.org/message-id/20041201161538.C5EBB6EC064@digi1.shellsystem.de

 · 

reply

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-admin@postgresql.org
  Cc: postgresql@thomasbache.de
  Subject: Re: "too many clients" and no cure
  In-Reply-To: <20041201161538.C5EBB6EC064@digi1.shellsystem.de>
  References: <20041201161538.C5EBB6EC064@digi1.shellsystem.de>

* 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