Out of socket memory

From: li feng
Date: Wed Mar 15 2006 - 01:41:32 EST


hi,i'm bothered by "Out of socket memory" recently. this problem
happened on a tcp application server which is "Linux 2.4.21-37.ELsmp".
this server accept tcp connection, process and send response, then
recv next request on this connection until the client close it.
can you give me some suggestion.

sometimes, these values may be twice than below
cat /proc/net/sockstat
sockets: used 531
TCP: inuse 5683 orphan 5171 tw 5207 alloc 5686 mem 21203
UDP: inuse 2
RAW: inuse 0
FRAG: inuse 0 memory 0

cat /proc/net/netstat
TcpExt: SyncookiesSent SyncookiesRecv SyncookiesFailed EmbryonicRsts
PruneCalled RcvPruned OfoPruned OutOfWindowIcmps LockDroppedIcmps
ArpFilter TW TWRecycled TWKilled PAWSPassive PAWSActive PAWSEstab
DelayedACKs DelayedACKLocked DelayedACKLost ListenOverflows
ListenDrops TCPPrequeued TCPDirectCopyFromBacklog
TCPDirectCopyFromPrequeue TCPPrequeueDropped TCPHPHits TCPHPHitsToUser
TCPPureAcks TCPHPAcks TCPRenoRecovery TCPSackRecovery TCPSACKReneging
TCPFACKReorder TCPSACKReorder TCPRenoReorder TCPTSReorder TCPFullUndo
TCPPartialUndo TCPDSACKUndo TCPLossUndo TCPLoss TCPLostRetransmit
TCPRenoFailures TCPSackFailures TCPLossFailures TCPFastRetrans
TCPForwardRetrans TCPSlowStartRetrans TCPTimeouts TCPRenoRecoveryFail
TCPSackRecoveryFail TCPSchedulerFailed TCPRcvCollapsed TCPDSACKOldSent
TCPDSACKOfoSent TCPDSACKRecv TCPDSACKOfoRecv TCPAbortOnSyn
TCPAbortOnData TCPAbortOnClose TCPAbortOnMemory TCPAbortOnTimeout
TCPAbortOnLinger TCPAbortFailed TCPMemoryPressures
TcpExt: 33057 51482 2153429 63569 1787 0 0 969 1460 0 5731738 159 0 0
0 0 403281 308 289105 600846 600846 219253109 1026907983 3599350558 76
102669777 19425927 89743405 157838242 191481 0 0 0 0 2354 0 3 0 0 0 0
0 330316 0 282847 230452 0 876130 3361736 54284 0 5682 61757 0 0 0 0 4
486575 58822 190 912913 0 0 0

cat /proc/sys/net/ipv4/tcp_max_orphans
32768
cat /proc/sys/net/ipv4/tcp_fin_timeout
20
cat /proc/sys/net/ipv4/tcp_wmem
4096 7108864 7108864
cat /proc/sys/net/ipv4/tcp_rmem
4096 7108864 7108864
cat /proc/sys/net/ipv4/tcp_mem
4096 7108864 7108864
cat /proc/sys/net/ipv4/tcp_max_tw_buckets
180000

i appreciate any help provided

Thank you
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html