(99: Cannot assign requested address)

Hello nginx users,

can anyone help me with the error? I use nginx on a debian etch server
with danga memcached. When i run a benchmaking test with ApacheBench i
get a lot of this messages in the error log.

2008/01/31 20:49:30 [crit] 24806#0: *70538 connect() to 127.0.0.1:11211
failed (99: Cannot assign requested address) while connecting to
upstream, client: 192.168.200.10, server: www.xxxxxxxxxx.com, request:
“GET /de/database/1 HTTP/1.0”, upstream: “memcached://127.0.0.1:11211”,
host: “www.xxxxxxxxxx.com

thanks for your help.

hi,

On 31.01.2008, at 21:18, Alexander K. wrote:

“GET /de/database/1 HTTP/1.0”, upstream: “memcached://
127.0.0.1:11211”,
host: “www.xxxxxxxxxx.com

try to run memcached in verbose mode and check memcached for errors.

jodok

hello jodok,

many thanks for your answer. i have set the option -vv for the memcached
but there are no error entrys in the logfile. this is the last logentry:

<7 connection closed.
<7 new client connection
<7 get website:page:/de/database/1

7 sending key website:page:/de/database/1
7 END
<7 connection closed.

last night i read some interesting articles. when i run the

netstat -ntc

command, i get hundreds of TIME_WAIT entrys. so
i changed the /etc/sysctl.conf file. i changed the following
entry from

net.ipv4.ip_local_port_range = 32768 61000

to

net.ipv4.ip_local_port_range = 1024 65000

now my benchmark test works fine. are there any other problems
when i run debian with this large port range?

sincerely alexander

No, there should no be problems.
You may set 1024-65535.

Thanks a lot Igor,

Alexander

On Fri, Feb 01, 2008 at 09:36:10PM +0100, Alexander Daniel wrote:

to

net.ipv4.ip_local_port_range = 1024 65000

now my benchmark test works fine. are there any other problems
when i run debian with this large port range?

No, there should no be problems.
You may set 1024-65535.