1
vote
0answers
69 views

Haproxy using 10GB Memory and 100% CPU with 50k connections

On a Ubuntu 14.04 x64 server, Haproxy uses 3.3 GB of memory and 6.8 GB of swap, while handling 52k connections. The CPU usage also keeps spiking to 100% before most of the traffic was redirected to ...
0
votes
1answer
23 views

How to Add/Remove New Server behind Haproxy with Minimal Disruption

Haproxy is currently balancing the load between 2 servers, A an B. Clients are connecting to these servers via persistent TCP connections. Question: We want to upgrade from server A to a more ...
1
vote
0answers
20 views

Multipath tcp application level performance measurement

I am working on a project related to Multipath tcp and I want to measure the goodput and the RTT at the application level. I don't want to use a traditional tool(netperf, iperf, ...) and I want to ...
0
votes
0answers
22 views

OWPING communicating between tcp and tcp6

I am trying to deploy the perfSonar toolkit on my network. I'm testing the one-way ping tool on a local subnet, which contains the monitoring station (in this case, a laptop) and a host ( a cubox-i ...
8
votes
5answers
575 views

dump tcp connections without tcpdump

On a centos box, I like to dump tcp connections - I would like to see if a server tries to send requests to a certain IP. Usually tcpdump would do the trick - but tcpdump is not installed, and ...
1
vote
1answer
88 views

How to configure SSH client timeout after network failure?

Let's say I connect from a client to a server via SSH, and in the middle of the session I pull the server's network cable. On the client, the ssh connection stays alive for around 15 minutes before ...
3
votes
0answers
46 views

Is net.ipv4.vs.timeout_timewait used also for IPv6?

Does this setting for TCP net.ipv4.vs.timeout_timewait apply only to TCP connections established over IPv4 or does it also apply to TCP connections established over IPv6? I have found this for ...
0
votes
1answer
82 views

Connect to sphinx on remote server

I recently moved sphinx onto the same server as our db so our architecture is: File Server that hosts our web app DB server w/ Sphinx instance (searchd) When I try to connect to sphinx at ...
1
vote
0answers
169 views

What does “connections reset due to unexpected data” in netstat -s mean

I'm running a memcached server under heavy load from multiple web servers. While investigating some odd app level behaviour, we spotted that netstat -s on the memcached box was showing a lot of ...
0
votes
1answer
86 views

Linux tool to show connections/s?

Is there a tool/command to show connections per sec? I've tried a few iptraf and iftop but I can't see anything about connection rates.
0
votes
1answer
115 views

Show real TCP/IP addresses behind Nginx environment

When i execute the command netstat -atun | awk '{print $5}' | cut -d: -f1 | sed -e '/^$/d' |sort | uniq -c | sort -n I see high number of connection assigned to server ip I want to see the real ...
1
vote
0answers
105 views

Linux MIPS box: ICMP (ping) works, but TCP does not - how to fix it?

I'm trying to set up MIPS Linux box network. Here is it's configuration: ~ # ifconfig eth0 Link encap:Ethernet HWaddr CC:5D:4E:FF:45:7F inet addr:192.168.0.2 Bcast:192.168.0.255 ...
1
vote
1answer
98 views

Low throughput on Debian + nginx/apache

On the same LAN/WAN I have a Windows server 2012 server running IIS 7.5 and a Debian (wheezy) server running Nginx 1.4.5. Both servers are connected to the same LAN/WAN. When I download a 10mb file ...
1
vote
1answer
55 views

TCP echo server security [closed]

I am setting up a Linux server similar to a TCP echo server and am wondering about security issues I should be concerned about. This will be a bare bones Centos/KDE server with no additional files ...
5
votes
6answers
449 views

How can I find the total number of TCP connections for a given port and period of time by IP?

On a Linux system there are plenty of methods for listing the current TCP connections for a given port by connecting IP but: how can I count the total number of connections to a port per source IP for ...
4
votes
2answers
648 views

VMXNET3 performance on Linux on ESX 5.0

What kind of performance can I expect from VMXNET3 adapter when running two Linux guests on the same VMware ESX private network defined between those guests? I use VMXNET3 adapter for communicating ...
2
votes
1answer
85 views

Find number of TCP bytes transmitted

I have rhel4 and rhel6 hosts. I can use netstat -s to see information on the number of segments sent/received. I can use ifconfig to see the number of bytes sent/received on a given interface (for ...
0
votes
0answers
59 views

Tomcat fails to return syn requests to F5

I have an F5 LTM sitting in front of two tomcat servers which host 4 applications. When I initially create the pools and add the members to the LTM I can hit all applications. This is the weird part, ...
0
votes
1answer
196 views

rmem_max more than rmem_default

I just installed centos 6.3 freshly and noticed the following: [root@localhost user1]# cat /etc/redhat-release CentOS release 6.3 (Final) [root@localhost user1]# [root@localhost user1]# cat ...
1
vote
1answer
251 views

Is it fine to turn off tcp window scaling and tcp timestamps on server?

Our application is running on Amazon server and we were continuously facing the issue related to tcp handshaking. Sometimes we were not able to connect to our application or telnet on port 80 of our ...
1
vote
1answer
138 views

Simulate tcp disconnect using socat

I am trying to use socat command to simulate a tcp disconnect between my client service and EMS broker process on a remote host. I am running this socat command socat TCP-LISTEN:8123,fork ...
0
votes
1answer
57 views

Routing between two PC

I have two computers connected by wire directly: PC-1 ============= PC-2 PC-1 configuration: IP Address: 192.168.1.1 netmask: 255.255.255.0 PC-2 configuration: IP Address: 192.168.1.2 ...
2
votes
0answers
187 views

Should I set rto_min for a route inside data center?

We have a few dedicated server rented in a data center with debian 7, kernel 3.2. We use one of those servers as a database server. The network between our application server and database server is ...
0
votes
1answer
205 views

TCP packets larger than 4 KB don't get a reply from Linux

I'm running Linux 3.2.51 in a virtual machine (192.168.33.15). I'm sending Ethernet frames to it. I'm writing custom software trying to emulate a TCP peer, the other peer is Linux running in the ...
1
vote
1answer
88 views

MongoDB cloneCollection between Azure hosted CentOS servers times out at 2 hours

I'm trying to clone a MongoDB collection from CentOS server A to CentOS server B. Both are running 2.4.6. The copy works great until exaxctly 2 hours, at which point I get a 9001 socket exception: ...
2
votes
1answer
557 views

How to achieve multiple NFS/TCP connections to the same server?

I'm trying to maximize the NFS/TCP bandwidth between a Linux client and a single NFS server over a 10Gbps link. Although each NFS mount has its own device (major/minor), everything comes down to a ...
3
votes
1answer
395 views

Linux - TCP Source Port Reuse (and delay)

We have an application making a lot of calls to a remote web server/service. Client app is JBoss/Java on Linux (Red Hat 5), remote server is Windows 2008. There is a Cisco ACE in the way but there ...
1
vote
0answers
259 views

TCP connections in FIN-WAIT-2 state on linux not timing out according to tcp_fin_timeout

We run a service with lots of embedded devices in the field, their tcp stack is a bit buggy and sometimes does not close connections properly, resulting in some connections being stuck in FIN-WAIT-2 ...
0
votes
3answers
117 views

Tunneling ports through different routes without the knowing of the local programs

I need to set up the following scheme: server1: Generic program connects locally to proxy, which then connects to proxy to server2. Everything is ok, until the connection between the servers. ...
7
votes
1answer
2k views

Unexpectedly shrunk window

I run a major media upload/download site and I noticed these: Is this serious or background noise due to the big file sizes and is there any tweaks I can add to /etc/sysctl.conf to improve and ...
1
vote
1answer
174 views

Reasons for a TCP Timeout scenario

I am actually currently investigating long running connections of a Java/Tomcat based Web application. After ruling out any internal or application based reasons, I am now down to the network layer. ...
1
vote
1answer
299 views

How to reset a tcp connection immediately on both ends on a certain condition using linux netfilter/iptables?

Dear Serverfault community, I have the following problem: I need to reset (disconnect) tcp connections on both network sides immediately if a certain string is encountered in the packet data. I don't ...
3
votes
0answers
149 views

snmp MIB-TCP::tcp not showing any usage

I am trying to configure MRTG on all of my servers for making a network weathermap, this requires running SNMP which MRTG gets the information from. So, I installed it on two servers the exact same ...
1
vote
1answer
392 views

How to edit TCP window size from iptables?

There is TCPMSS target to edit MSS value of connections (including forwarded). How to edit window size (for example, cap to some maximum value) by iptables rule? Expecting something like iptables ...
2
votes
1answer
267 views

Tomcat not getting data from TCP recv-Q, hanging

I have a program which is essentially a tomcat server with postgreSQL DB running on CentOS Linux 6.3. When a client submits a larger amount of data (~10MB) to the server, which should be received on ...
1
vote
1answer
207 views

Why does OS X spend one more packet to establish and close a TCP connection?

Linux spends 3 packets to establish a TCP connection and 3 packets to close it, as shown by the tcpdump capture # establishing TCP connection 22:37:09.150456 IP 127.0.0.1.49327 > 127.0.0.1.8000: ...
0
votes
1answer
372 views

How to increase nginx connections

I am facing the problem of nginx max connection issues. I am not able to increase max active connections(520) made by nginx. Some time it is using whole writing (516) operation connections. and due to ...
0
votes
1answer
73 views

Route TCP responses (ACK) through another interface

For reasons I can't go into, I am working with a strange network configuration. I have a one-way higher speed wireless link, and a slower bi-directional wireless link. There is a network interface ...
-1
votes
1answer
171 views

iptables NAT Forward 443 Port DNAT,SNAT failing

I'm trying to setup a proxy server that handles http and forwards https to the webserver. Client > Proxy > httpd I added the rules: iptables -t nat -I PREROUTING -i eth1 -p tcp -m tcp --dport ...
2
votes
1answer
2k views

Netstat -s showing (and growing) “packets pruned from receive queue” and “packets collapsed in receive queue”

we are seeing the following: [root@primary data]# netstat -s | grep buffer ; sleep 10 ; netstat -s | grep buffer 20560 packets pruned from receive queue because of socket buffer overrun ...
1
vote
2answers
142 views

How can I release a port that is still in use but not bound to a process?

I'm running a Python application that spawns multiple processes. It uses port 56008 to listen for client requests. Sometimes after closing it the port it used is still "in use". There are still some ...
4
votes
1answer
613 views

How to expose a UNIX domain socket directly over TCP

I'd like to have a UNIX domain socket, say /var/program/program.cmd for example, exposed via TCP, lets say on port 12345. I'd also like this to be running full time in the background. What's the best ...
3
votes
1answer
305 views

problems simulating TCP SYN flood

I'm trying to simulate a TCP SYN flood to tune a web server (planning to deploy on AWS). I setup a 'target' VM, disabled iptables and running hping (hping -p 80 -i u1000 -c 1000 -S destaddr) from ...
-3
votes
2answers
254 views

Linux : Send a tcp message to a url/endpoint [closed]

I want to send a xml message to a URL like tcp://localhost:6060/services/test What are the available tools for this?
0
votes
1answer
153 views

Socket based byte counts

I see a lot of tools to get the RX and TX byte counts for transmission on interfaces, is there any tool/program that I can use to get a total transmitted byte count for a single specified socket? I'm ...
0
votes
1answer
94 views

What process does 'own' socket in 'Time Wait' state?

Main question I see following line in netstat. Does it means this socket doesn't belong to any process? #>netstat -tpn|grep TIME_WAIT| head -1 tcp 0 0 ::ffff:127.0.0.1:5555 ...
1
vote
1answer
186 views

TCP RWIN, MSS and MTU [closed]

I have been doing some reading into TCP Receive Window (RWIN), Maximum Segment Size (MSS) and Maximum Transmission Unit (MTU). Right off the bat I have some questions and I need a power user's help! ...
3
votes
1answer
189 views

How to disable Xvfb using TCP ports when using pyvirtualdisplay (Python)?

Trying to use pyvirtualdisplay for Python to start some applications with a virtual Xvfb X terminal. However, we've seen port clashes and would like to disable Xvfb from using TCP ports. I have ...
0
votes
1answer
115 views

svnserve -d child process spawning and svn connections under netstat

I see many svnserve -d processes running on my CentOS 6 box, one with the PID 400 and PPID 1 and the rest with PPID 400. I take this to mean the first one is started by init scripts (i know it is) ...
1
vote
1answer
52 views

How to diagnose why a port is broadcasting a “ZeroWindow” status

I have two CentOS servers (one is an app server, the other is a DB) communicating over a port. Every once in a while, the application server starts broadcasting that the port connected to the DB has a ...