(2.4.20-8smp) No outgoing sockets, ingoing is ok

From: Antonio (a.gulli_at_gmail.com)
Date: 06/25/04


Date: 24 Jun 2004 23:02:54 -0700

I have a redhat9.0 box. The server runs a meta-search engine which
connects several engines using aync I/O. The program was intensively
debugged.
Sometimes the server presents a strange behaviour. It accepts new
incoming
connections (opening sockets .. for instance the web server, ssh,
etc),
but it is not able to open any outgoing connections until reboot. If i
wait for a long time (30 minutes or so) it starts to work again. The
active connections such us ssh are kept.

I kept under control /proc/<pid>/fs and non active proccess is running
out of file descriptors (no strange number there).

This happen for different users (noboby, myself, root) and for
different processes... when one stops .. all stop

i tested the system with ab (apache bech) and it is able to handle all
the connections. Quite strange

When this happen the tcpdump filter just few packets.

Any idea on what to monitor or to test ?
Any help will be appreciated, this is making me crazy.

My system:

2.4.20-8smp #1 SMP Thu Mar 13 17:45:54 EST 2003 i686 i686 i386
GNU/Linux
model name : Intel(R) Pentium(R) 4 CPU 2.60GHz
cat /proc/meminfo
total: used: free: shared: buffers: cached:
Mem: 1583661056 337104896 1246556160 0 18034688 163811328

cat /proc/sys/fs/file-max
16384
cat /proc/sys/fs/file-nr
2108 82 8192
cat /proc/sys/net/ipv4/ip_local_port_range
32768 61000

# Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core
filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

#
# Aggiunto da AG 11/May.04
#
# Set maximum file and inodes
fs.file-max = 16384
fs.inode-max = 65536



Relevant Pages

  • Re: SBS 2003 IIS BASED SERVICES FAIL INTERMITTENTLY
    ... If I read your post correctly, you have a switch where the SBS ... Run DHCP server on your SBS, and set all client machine nics to dynamic. ... Once you have your nics configured, run the Connect to the Internet wizard, ... QUESTION1 - what is REFUSING CONNECTIONS? ...
    (microsoft.public.windows.server.sbs)
  • Re: SBS Exchange 2003: too many "Current Sessions" opened
    ... So far everything is good and now I'm just monitoring my exchange. ... get the SMTP service to stop hanging in the first place. ... won't have dead connections. ... work for now until I put into production new server hardware with sbs 2003 ...
    (microsoft.public.windows.server.sbs)
  • Re: SBS Exchange 2003: too many "Current Sessions" opened
    ... You really should go through the steps I posted and get the SMTP service to stop hanging in the first place. ... You'll be happier, you won't be clubbing your server every day with a kill script, and you won't have dead connections. ... You do *not* need to restart the server, ...
    (microsoft.public.windows.server.sbs)
  • Access 2007->SQL Server2005 "connection was forcibly closed",GNE 1
    ... I have a very big problem connecting an SQL ... changing number of clients using the SQL Server with this frontend at the ... connection pooling or if these connections are separated connections). ...
    (microsoft.public.sqlserver.connect)
  • Re: Reducing load for LAMP app?
    ... MySQL: as much as possible, he keeps query results in RAM, but ... His hoster says that Apache server is under significant load. ... Using apc is pretty much transparent, but memcached will require modifying your database abstraction layer using the memcached functions. ... With persistent connections, you must have the maximum number of connections *ever* required allocated *all of the time* - even if no one is using your server. ...
    (comp.lang.php)