Re: pgbench: could not connect to server: Resource temporarily unavailable - Mailing list pgsql-performance

From Kevin McKibbin
Subject Re: pgbench: could not connect to server: Resource temporarily unavailable
Date
Msg-id CADc_NKh109RFvYEbmcGuAHDxixxJ0u3Qkso0Yry9s-H2ukY4aQ@mail.gmail.com
Whole thread Raw
In response to Re: pgbench: could not connect to server: Resource temporarily unavailable  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-performance

Thanks for your input everyone! I wanted to confirm that increasing the somaxconn also fixed the issue for me.

Kevin


$ cat /proc/sys/net/core/somaxconn
128

by default, which is right about where the problem starts.  After

$ sudo sh -c 'echo 1000 >/proc/sys/net/core/somaxconn'

*and restarting the PG server*, I can do a lot more threads without
a problem.  Evidently, the server's socket's listen queue length
is fixed at creation and adjusting the kernel limit won't immediately
change it.


pgsql-performance by date:

Previous
From: Tom Lane
Date:
Subject: Re: pgbench: could not connect to server: Resource temporarily unavailable
Next
From: Thomas Munro
Date:
Subject: Re: pgbench: could not connect to server: Resource temporarily unavailable