Re: postgresql failed to establish a connection to

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: postgresql failed to establish a connection to
Дата
Msg-id 4F2E4B400200002500044DF0@gw.wicourts.gov
обсуждение исходный текст
Список pgsql-admin
"Al-Salami, Adel"  wrote:

> am using Npgsql .net using VB.NET and trying to make a stress test
> about the connections ammount, trying to open about 200 sessions
> from a client Windows7 PC.

What is your setting of max_connections?

Unless your server has 100 cores, you should probably consider a
connection pool which accepts the number of active clients you want
to support, and routes that to a small pool of actual database
connections.

> Randomly I get an error message in my vb.net from the npgsql saying
> that "postgresql failed to establish a connection to < pg server
> name >" that happen for about 10 percent of the connections
> randomly, meanwhile on the server itself I found errors like:
>
> EOF on Client-Connection
> No connection could be made because the target machine actively
> refused it.

Can you copy/paste exact lines from the PostgreSQL log?

You didn't say anything about the version of PostgreSQL, its
configuration, or the server OS.  Please read this before posting a
follow-up, to get ideas of what information might be useful to people
trying to help you:

http://wiki.postgresql.org/wiki/Guide_to_reporting_problems

It can be particularly useful to include a self-contained test case
using software that others are likely to have available.  If you can
script something using psql to make the connections which shows the
problem, you can probably get an authoritative answer very quickly.

-Kevin

В списке pgsql-admin по дате отправления:

Предыдущее
От: Scott Ribe
Дата:
Сообщение: Re: Starting postgres server on mac os x 10.6.8
Следующее
От: arokyzxc
Дата:
Сообщение: build postgresql problem