connection failed in threaded application

From: Tomas Berndtsson <tomas(at)nocrew(dot)org>
To: pgsql-general(at)postgresql(dot)org
Subject: connection failed in threaded application
Date: 2001-09-05 18:44:40
Message-ID: 80elpla353.fsf@junk.nocrew.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I use PostgreSQL 7.1.3 on both Linux 2.4 and Solaris 8 with my multi
threaded application. The application has 16 threads and each thread
opens a connection to PostgreSQL. Under Linux, this works just
fine. Under Solaris, 11 threads succeeds in connecting to the
database, but the rest fails with:

connectDBStart() -- connect() failed: No such file or directory
Is the postmaster running (with -i) at 'localhost'
and accepting connections on TCP/IP port 5432?

I am running postmaster with "-i -N32 -B64" so there should be enough
allowed connections for my application. I have set the systems SHMMAX
to 16MB instead of the default 1MB.

Has anyone seen this happen before, or know why it could happen? The
fact that 11 threads succeeds sounds very strange to me.

Greetings,

Tomas

Browse pgsql-general by date

  From Date Subject
Next Message Arne Weiner 2001-09-05 19:39:33 Re: using index on text type, select with like
Previous Message Randal L. Schwartz 2001-09-05 18:26:28 Re: PL/java?