System default cause dropped packets
Bug #947493 reported by
Navraj Chohan
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
AppScale |
In Progress
|
High
|
Navraj Chohan |
Bug Description
When running ab tool the following error shows up:
apr_socket_recv: Connection timed out (110)
And in /var/log/kern.log you'll see:
nf_conntrack: table full, dropping packet.
To increase the values:
In /etc/sysctl.conf add the following two lines
net.core.somaxconn = 10240
net.netfilter.
and then run
/sbin/sysctl -p /etc/sysctl.conf
Changed in appscale: | |
importance: | Undecided → High |
assignee: | nobody → Navraj Chohan (nchohan) |
status: | New → In Progress |
To post a comment you must log in.
I am getting a similar result - depending upon the value of -c, 100 is ok 200 will throw the timeout
ab -n 200000 -c 100 -k "http:// 192.168. 100.10/ test2.php" >> OK 192.168. 100.10/ test2.php" >> timeout
ab -n 200000 -c 200 -k "http://
here are some values from /etc/sysctl.conf
net.ipv4.ip_forward = 1 tcp_tw_ reuse = 1 netfilter. ip_conntrack_ max = 131072 tcp_tw_ recycle = 0 tcp_orphan_ retries = 1 tcp_fin_ timeout = 25 tcp_max_ orphans = 262144 ip_local_ port_range = 32768 61000 nf_conntrack_ max = 262144
kernel.shmmax = 2208845824
kernel.shmall = 2208845824
net.ipv4.
net.ipv4.
net.ipv4.
net.ipv4.
net.ipv4.
net.ipv4.
net.ipv4.
net.netfilter.
net.core.somaxconn = 65536
Environment: Ubuntu Server 12.04 x86_64 running the web server and Ubuntu Server 10.04 x86_64 running the ab command. The Ubuntu Server 12.04 x86_64 is running inside a KVM virtual machine