A connection generally refers to a TCP/IP connection, that is established as the result of the handshake between 2 hosts.

learn more… | top users | synonyms

36
votes
4answers
12k views

Why do consoles sometimes hang forever when SSH connection breaks?

I've seen this with so many consoles (on Linux, Mac, ...), and with lots of different machines in many different networks. I can never pinpoint the exact reason, why this happens: All you have to do ...
10
votes
6answers
15k views

How to force MySQL to connect by TCP instead of a Unix socket?

I would like to analyze mysql traffic. Right now, all mysql requests are sent to the MySQL unix socket: unix 2 [ ACC ] STREAM LISTENING 3734388 15304/mysqld ...
9
votes
3answers
111 views

Log connections to program

Besides for using iptables to log incoming connections.. Is there a way to log established inbound connections to a service that you don't have the source to (suppose the service doesn't log stuff ...
8
votes
3answers
2k views

Can I make TCP/IP session to run less than 60 seconds?

Our server is overloaded with TCP/IP sessions, we have 1200 - 1500 of them. Most of them are hanging in TIME_OUT state. It turns out that a connection in TIME_OUT state occupies a socket until 60 ...
8
votes
2answers
14k views

Understanding this error: apr_socket_recv: Connection reset by peer (104)

So, if I do some benchmarking with apache benchmark (ab), and I use large numbers of requests. Then sometimes in the middle of a test I get this error. I don't even know what it means. So how can I ...
7
votes
1answer
4k views

Remote connection to MySQL server takes very long

I have a MySQL 5.0.75 server running on my Linux notebook to which I want to connect from another machine in the local network. This connection takes 5-6 seconds: mysql -h 172.22.65.101 -u myuser ...
7
votes
7answers
20k views

ssh tunnel refusing connections with “channel 2: open failed”

All of a sudden (read: without changing any parameters) my netbsd virtualmachine started acting oddly. The symptoms concern ssh tunneling. From my laptop I launch: $ ssh -L 7000:localhost:7000 ...
7
votes
2answers
5k views

Connection error to mysql database

My application needs to do quite frequent connects to a mysql database on another machine. However I get frequent errors on connection; I can usually eventually connect but after many retries. The ...
6
votes
2answers
3k views

Impact of Connection Close vs Keep-alive

I'm configuring our servers, and due to the nature of our load balancer, we can't send connection keep-alive headers. I'm trying to determine the impact of sending these headers to both the end-user ...
6
votes
2answers
4k views

Certificates in SQL Server 2008

I need to implement SSL for transmissions between my application and Sql Server 2008. I am using Windows 7, Sql Server 2008, Sql Server Management Studio, and my application is written in c#. I was ...
6
votes
1answer
2k views

Load balancing MySQL using HAProxy: Got an error reading communication packets?

I've set up load balancing MySQL slaves using HAProxy via a xinetd. 2 load balancers shared a virtual IP that is managed by Pacemaker: crm configure show: node SVR120-27148.localdomain node ...
6
votes
1answer
1k views

PHP/mySQL: how to debug a 'too many connections' error?

I am working right now with PHP website on my client's dedicated server and I get periodically an error too many connections but ~5 users are browsing this page. In phpMyAdmin I can see that max ...
6
votes
1answer
679 views

https lingering TIME_WAIT connections

From my client PC I'm connecting to a webserver, it uses HTTPS only. When I connect I see in TCPView (sysinternals tool alternative to netstat) a lot of TIME_WAIT connections to the https endpoint. ...
5
votes
6answers
836 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 ...
5
votes
4answers
3k views

mysql connection is slow (5seconds)

After building my webapp on a first boot i create 2 connections to mysql on debian then 1-2 (r/w) for every page after that. The connection consistently take 5.2 seconds to connect. Debian is in a VM ...
5
votes
3answers
18k views

How do I allow outgoing connections via iptables?

I have two servers. The program on the first needs to communicate with the second on port 2194. I know its not working, because when I do: root@server1 [~]# telnet myserver2.com 2194 Trying ...
5
votes
2answers
142 views

Effects of internet connection speeds on server queries

Can my internet connection significantly effect queries run on phpmyadmin? I am currently 18 down and 30 up. I switched internet connections today and noticed a deep drop in query performance. The ...
5
votes
1answer
136 views

Odd TCP termination sequence

While troubleshooting another thing, I've noticed an odd pattern of TCP closes. Packets: http://www.cloudshark.org/captures/7590ec4e6bef What's happening is that the last few packets of the close ...
5
votes
1answer
1k views

Finding short-lived TCP connections owner process

Running tcpdump on local connections to an apache server, I found TCP connections being established and closed immediately every 2 seconds. How do I find which process is responsible for these? ...
5
votes
1answer
723 views

Should the database connection limit equal the number of processes connecting?

I noticed that PostgreSQL and MySQL have a 100 client connection limit by default. I'm wondering if I should turn this down since the webserver is on the same box and I only have about 20 PHP ...
5
votes
1answer
229 views

Connecting to AS/400 hardware

In about 2-3 weeks I'm getting an old AS/400 server (something 9406, probably 6xx or 8xx) to learn OS/400 from administrators point of view. Will I need some special hardware to connect and do IPL ...
5
votes
1answer
630 views

Redis connection issue

We are currently experiencing a lot of Redis errors with the message Unable to connect: read error on connection, trying next server We run Redis on FreeBSD using PHP Redis and we have a hard ...
5
votes
2answers
2k views

apache webserver unresponsible with server-status showing all child processes waiting for connection

My setup: i have 3 nearly identical webserver machines serving the same high loaded dynamic website with simple load balancing over dns. The service has been working for over two ears with the same ...
4
votes
6answers
713 views

Effect of distance from server on page load speed

I measured the load speed of a static image file severed by nginx from my server (using pingdom service). The server should normally process this request within few seconds. My server is located in ...
4
votes
8answers
2k views

What's better than wifi to connect servers wirelessly (ethernet-like latency)?

I need to connect some servers wirelessly and would like to know what other technologies (than Wifi) exist to get an idea of the possibilities. It would nice to know the pros/cons, limitations. ...
4
votes
2answers
277 views

Linux box takes 10 seconds to make a connection

My machine is taking 10 seconds to establish a connection. Once the connection is established, it is up to speed and works correctly. But if I for example ping www.google.com, it takes 5 seconds for ...
4
votes
6answers
788 views

What causes a delay of 100 ms in initiating an HTTP connection?

Settings: this is a quad CPU machine, plenty strong, not loaded at all (neither CPU nor network), the client is a Windows Server 2008 64bit, the server is a linux box. I have four threads that are ...
4
votes
3answers
8k views

Network packet size on sql server connection string to improve throughput

We have a dataload job that moves a relatively large amount of data across the network between two sql servers. the servers are on the same subnet and there is only a switch between them. the data ...
4
votes
4answers
1k views

How to wire 20 computers and 20 phones and 1 server into LAN?

I have currently 3 switches Two Netgear JFS524 with 24 slots, One Belkin with 16 slots. Server DSL Internet Router. Main question is how to connect switches together, two Netgear's are next to each ...
4
votes
1answer
2k views

Unable to connect to a remote database

I'm playing with MongoDB. I have a good deal of experience with MySQL and was using something called Sequel Pro to connect to remote databases. I'm now trying MongoHub but can't seem to get it to ...
4
votes
2answers
17k views

What is the typical maximum number of database connections for Oracle running on Windows server?

We are maintaining a database server that serve a large number of clients. Each client typically running serveral client-applications. The total number of connections to the database server (Oracle ...
4
votes
1answer
984 views

IPtables rate-limit, What are the differences between modules? Recent, Limit

I am doing some rate-limiting with IPtables, and i'm not sure if I should use "Recent" or "Limit" What are the differences between the two? If they both achieve the same result, which one has ...
4
votes
1answer
1k views

connection sync suggestions with HAproxy and keepalived

I managed to get HAproxy working in a failover configuration as suggested on the architecture.txt document using keepalived. I used CentOS 5.5, HAproxy rpm (haproxy-1.3.25-1.el5) from epel repo, and ...
4
votes
2answers
245 views

What permission is needed for my SQL Server 2005 DB for a WebUser?

I have a connection string in my asp.net code that looks at a SQL Server 2005 database. I created a UserName called WebUser and granted him db_datawriter and db_datareader in SQL Server 2005. Both ...
3
votes
6answers
26k views

SQL - an error occurred during the pre-login handshake

Until yesterday evening, I was able to connect to my server from my local machine. Now, I get the following error: A connection was successfully established with the server, but then an error ...
3
votes
1answer
437 views

Wireless Access Point connection benefits over Wireless Routers

While I was doing research on wireless connection limits, I stumbled upon this question. Zypher's answer seems to suggest connection capacity benefits of wireless access points over wireless routers. ...
3
votes
4answers
6k views

Best way to connecting switches together to reach the best performance?

we got 3 Floors and almost 11 Switches. we are going to connect these switches so got the best performance. so this is how we got that. Network Diagram My Questions are: Is this Plan can get the ...
3
votes
2answers
208 views

How common are encrypted connections between email servers?

alice@a.com --> smtp.a.com --?--> Internet --?--> pop.b.com --> bob@b.com On the route from sender to server, and server to receiver, encrypted connections (STARTTLS, etc) seem to get ...
3
votes
2answers
1k views

“ssh root@server” hangs forever

Sometimes my ssh client will take forever to login. This happens when the server is not responding (overloaded, killed processed, ...). My automated scripts will then fail because the ssh process ...
3
votes
1answer
2k views

nginx connection reset

When first visiting my site after not visiting it for a few minutes, the connection is "reset" 100% of the time. I get this message when debug is turned on, along with a 400 bad request status ...
3
votes
1answer
106 views

Can a TIME_WAIT connection be restored?

Is it possible to restore a connection that is in state TIME_WAIT? If not, I use raw packets (forgering the source), is it possible? (Please understand that I do not intend to do bad things, it's ...
3
votes
2answers
2k views

Too many active IP Connections

I have a Linksys WRT54GS v7 with a dd-wrt (micro) installed on. When I try to view Active IP Connections, I see too many connection there. Interestingly, there are about 120 connections that originate ...
3
votes
3answers
270 views

Dual external internet connections

We have here 2 Internet connections coming in. And the intention is to have all services available on our server which should be available externally, to be available through both connections. Also, ...
3
votes
1answer
431 views

BGINFO with MySQL for storing computer information

We are trying to set up BGinfo to record network computers' information in a centralized database. We intend to set up BGinfo to start up for all users and record logon and logoff time plus setting up ...
3
votes
2answers
703 views

Tracking down “Connection reset” errors in Linux

I'm handling large numbers of concurrent downloads (approx. 500 per server) using Java. All the files are being downloaded from Amazon S3, and the downloading server is an EC2 m1.large instance. ...
3
votes
1answer
96 views

What is a good way to determine a server's connection usage?

Trying to figure out where my system's connections are being used (i.e. how many connections belong to what processes - could even be filtered by some expression through grep, if it applies). The ...
3
votes
2answers
2k views

Can not mount NFS from server on local network

I set up my NFS server without doing any bigger changes in configuration files. After that I added these entries to /etc/exports(both paths are valid) on server(192.168.1.11): /export ...
3
votes
1answer
1k views

Out of nowhere, ssh_exchange_identification: Connection closed by remote hot me too

See similar: Out of nowhere, ssh_exchange_identification: Connection closed by remote host Today, 6/19/12 attempting to ssh to the same host as usual ssh replied ssh_exchange_identification: ...
3
votes
1answer
3k views

Installed apache server , can't connect from outside (using CentOS in WMware )

I installed Apache in CentOS 5.5, after searching the web for tips on configuration I did the following to enable connecting the HTTP server from outside: In /etc/httpd/conf/httpd.conf I changed the ...
3
votes
1answer
132 views

TCP 443 Connection goes into server but never reaches Apache2 (Passenger)

We have some weird problems, when external servers try to connect to our Website on Port 443(TCP) which is an Apache2+Passenger and a Rails Application. The problem only happens rarely. I started to ...