1
vote
1answer
39 views

Debian 7.4 drops UDP traffic randomly

I'm running Debian 7.4, KVM VPS with the latest updates. I'm getting UDP ports randomly closed for 2-10 minutes for no reason. I'm running gaming servers and the port tester shows the ports are ...
4
votes
1answer
167 views

How to check if a process is non-blocking in linux without using a stack tracer?

A multi-cpu server is running several processes. One process has a thread that should always be in a spinning state, using 100% of the CPU it's been assigned. My current method (besides asking the ...
3
votes
0answers
79 views

timing issue after route add/delete (route not used)

I have an application that is running a raw IP socket, destination of this socket is governed by routes installed via the 'ip route add' command. These routes can change during the lifetime of a ...
4
votes
4answers
452 views

Can't connect to MySQL using 'localhost' but using '127.0.0.1' it's ok?

My /etc/hosts file looks like this: 127.0.0.1 localhost # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ...
2
votes
2answers
242 views

On Linux, is there a configurable socket timeout between kernel and user space?

I'm currently fighting with some crappy piece of (custom) server software which doesn't accept its connections properly (written in Java by a PHP programmer who never before touched sockets let alone ...
8
votes
4answers
618 views

how to measure MB/sec on specific socket

We have a web tier where once in a while a web node will slam our data nodes(plural) and if we could see the MB/second coming into that machine on all sockets or on individual sockets, we could ...
0
votes
0answers
149 views

Tomcat on Linux - won't close socket

When I keep sending http requests to my webserver, it stops responding and I'm stuck in a white screen saying, 'waiting for xxx'. It goes unresponsive. This only happens on Linux. Also I don't see ...
2
votes
1answer
141 views

Software to prevent daemons from binding/listening to local ports?

Having an issue with some not-so-bright developers creating daemon processes that are binding to the (not actually reserved) local ports on our Linux servers. Those ports being defined in: cat ...
0
votes
1answer
195 views

How to check if sockets are sending/receiving data on linux?

I often have to debug processes which involve a server client tcp connection. I'd like to check, during times where a client might seem stuck, whether the server is sending it data or not. I can use: ...
1
vote
0answers
197 views

UDP socket receive buffer size change on RHEL6.3

Our system used to work on RHEL5.3 And the socket receive buffer size is 64k. And that works fine. We can get message size up to 64k on UDP socket. But after system upgrade, it is running on RHEL6.3 ...
0
votes
2answers
646 views

Connection Refused Error Java/Linux

I'm trying to move an existing project over to a new (linux) server environment (note, I have no direct access to the code nor do I have any knowledge about the project in general - talk about a great ...
2
votes
0answers
96 views

what can put linux process managing connection pool into bad state, so it restarts them continously?

I have an application with pool of connections to MySQL. At some point, in production, every 1-3 seconds some socket is closed. As a result my app restarts this connection. This is pretty big pool ...
1
vote
1answer
264 views

Access denied to mysql cause by invalid server hostname bind address

I cannot login to mysql using the terminal. [root@fst mysql]# mysql -h localhost -u admin -p Enter password: ERROR 1045 (28000): Access denied for user 'admin'@'localhost' (using password: YES) I ...
1
vote
0answers
224 views

A new socket connection stays at SYN_RECV [closed]

I run a DC++ server (PtokaX) with peak users around 1500. From time to time, the server goes in a state where any new socket connection to PtokaX stays at SYN_RECV and few sockets at CLOSE_WAIT. I am ...
1
vote
1answer
925 views

clamd says socket in use by another process but I can't find one

I'm running CentOS 5.3 (Final) and using rpmforge I installed clamd and prereqs ok. I started clamd and ran a freshclam all ok. But if I run "clamd PING" or clamd /path/to/file I get ERROR: ...
3
votes
2answers
808 views

linux : netstat listeting queue length

Is there a way to view queue length on listening socket under linux, the same way as netstat -L outputs for freebsd? I.e. you can see X/Y/Z in netstat -L output, but netstat under linux doesn't ...
1
vote
1answer
107 views

why there are three(it should be two) process related to screen when using ps command?

you can see there are three processes which are related to screen command: [world]$ ps auxf USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND hugemeow 28938 0.0 0.0 66080 ...
3
votes
1answer
443 views

Socket.io Flashsockets over HTTPS

We’re trying to get Socket.io flashsockets to work in Internet Explorer 9 over HTTPS/WSS. The flashsockets work over HTTP, but HTTPS is giving us problems. We’re using socket.io version 0.8.7 and ...
0
votes
1answer
1k views

Sar: what does totsck stand for

I'm looking for an explanation of the totsck column for the "sar -n SOCK" output 09:44:06 PM totsck tcpsck udpsck rawsck ip-frag tcp-tw 09:44:09 PM 580 18 5 ...
0
votes
3answers
652 views

What is the linux command to find out the number of socket currently open?

I use that : sudo watch lsof -i -4 -a -P and it returns a list. how to get the count? I tried this but doesn't work. sudo watch lsof -i -4 -a -P | wc -l
2
votes
1answer
1k views

Which permission is needed to open a TCP server socket on Linux?

I want to start a websocket server, but can't connect to it from other machines. Only when I start the websocket server with root permissions it works. So this seems to be an permission Problem. ...
0
votes
1answer
569 views

Should You Continue Polling Socket For Readiness After An EAGAIN or EWOULDBLOCK Error?

I am creating a web crawler with a multiplexed download manager using Linux epoll (Linux 2.6.30.x). I pick links from a database of over 40,000 domains (each domain having between 1 and 2000 urls), a ...
0
votes
4answers
380 views

Understanding iptables chains in linux (in socket terms)

Is it true to say: A) OUTPUT chain is for the packets that are "generated" by the machine itself i.e. OUTPUT chain affects connect() function. B) INPUT chain is for packets that are "addressed to" ...
0
votes
1answer
389 views

Is there a rate limiting tool for linux that can limit rates per process or socket?

I found tc, which allows you to filter by ip, port etc. and then limit rates. But I was wondering if there was anything that could filter by application or limit rate given another process' socket .. ...
1
vote
1answer
3k views

Keep-alive options not working on Linux for an outgoing connection

Does anyone know if Linux supports keep-alive socket options on an outgoing connection? I made an outgoing connection with keep-alive options but netstat --timers shows off (I'm assuming timers are ...
0
votes
1answer
3k views

Server offer with “2-sockets and 1 virtual guest”, what does this mean?

I've read in a server support website that they offer a "2-sockets with 1 virtual guest" packet for a Linux Server.. but what does the "2-sockets" part mean? I know servers may be virtualized but I'm ...
1
vote
2answers
207 views

Allowing Sockets through the Yast FireWall

Short version: How do I allow the Yast Firewall on a Linux server to allow sockets to connect with a randomly (by os) selected port? Longer version: A part of my larger java program has a client ...
0
votes
2answers
4k views

How to determine number of open sockets? VM Resource Issues

I've got a MediaTemple DV server. I've been seeing a lot of QOS alerts for "numothersock" which is defined as: The number of sockets other than TCP ones. Local (UNIX-domain) sockets are used ...
0
votes
2answers
39 views

Help: Enable Ports

I'm trying to enable a few ports, as I have a php script that uses sockets. I added the following to my httpd.conf file: Listen 6112 Listen 6113 However, when I execute my php script, it says the ...
2
votes
1answer
87 views

Host information with TCP port

Forgive this question, I'm a designer trying to get my head around a possible network architecture. I have a wildcard domain on example.com. The client connects via TCP to foo.example.com:1234. Is it ...
1
vote
2answers
330 views

Linux: How to display all sockets opened for a particular interface?

How can I display all sockets opened for a particular interface?
10
votes
3answers
7k views

Sockets found by lsof but not by netstat

I have an application which is running out of file descriptors, apparently by opening sockets, but I can't find out exactly what these sockets do. These appear in the lsof output as java 9689 ...
0
votes
2answers
498 views

Bandwidth Monitor

I am creating a bandwidth quota program in PHP, however I am finding that to create it with PHP is a bit hard. As an example of what I am trying to do, the user can download 10GB per day, and after ...
0
votes
2answers
401 views

Linux command to wait for a SSH server to be up

I have a script which creates a virtual machine and gives me back an IP address. Then I would like to do something like this: waitforssh 192.168.2.38 && ssh 192.168.2.38 And it will wait ...
2
votes
2answers
7k views

What is the maximum number of socket connections on Linux?

How do I know the maximum number of connections allowed to my Ubuntu server?
0
votes
3answers
342 views

Aggregated throughput of multiple connections (Linux)

Why do multiple connections from the same host achieve better throughput than multiple connections from different hosts? I suspect is something kernel-related (Linux) but a confirmation would help a ...
2
votes
1answer
577 views

Linux: Determining memory used by all connected socket send buffers

Is there a way, on Redhat Linux, to determine the total amount of "real" memory that is being allocated to the send buffers for all currently connected sockets? I am troubleshooting a potential ...
0
votes
1answer
1k views

Failed binding to /var/run/freeradius/freeradius.sock: Permission denied

I am trying to install FreeRadius, but I am getting the following error: Failed binding to /var/run/freeradius/freeradius.sock: Permission denied I have no experience with Unix sockets, so I ...
54
votes
6answers
60k views

How to forcibly close a socket in TIME_WAIT?

I run a particular program on linux which sometimes crashes. If you open it quickly after that, it listens on socket 49201 instead of 49200 as it did the first time. netstat reveals that 49200 is in ...