A colleague from the diagnostics group encounters the following problem on
one of his IOCs:
The IOC is the central point of some data aquisition process. I.e., the
database is connected to 16 other IOCs with one link from and one link to
each IOC.
There is a sequencer state machine supposed to be running on the IOC that
sets up one "assign" connection to an external PV (not on this IOC), three
assigns to PV on the IOC itself.
Without loading the state machine, the IOC runs without error.
When the state machine is loaded, approx. ten seconds later (obviously
while the CA clients builds the connections) the IOC starts printing error
messages of the form "CAC: ... Unable to allocate a new socket ...". The
failing CA connections correspond to CA links contained in the database,
not the state machine.
Any ideas why this happens?
Are there any limits of sockets/connections in the CA library?
Ralph
ps: the following is a log of what we tried to figure out what is
happening. The IOC hung some seconds after this log stops.
----- 8< -------------------------------
[... normal boot messages ...]
#start sequence programs
seq &iocOnOff, "IOC=MDIZ2T5G"
@(#)SEQ Version 1.9.2: Wed Feb 5 17:45:42 MET 1997
tShell 01/21/98 15:34:18: Spawning state program "iocOnOff", task name = "iocOnOff"
tShell 01/21/98 15:34:18: Task id = 13576804 = 0xcf2a64
value = 13576804 = 0xcf2a64
Done executing startup script /opt/IOC/DiagTestSystems/bin/mv162/st.MDIZ2T5G-boot
-> iocOnOff: INIT -> OFF
-> seqCAC: ... Unable to allocate a new socket ...
CAC: for MDIZ1D2G:start.PROC on 192.168.21.163
CAC: ignored search reply- proceeding
CAC: ... Unable to allocate a new socket ...
CAC: for MDIZ1D2G:bdata on 192.168.21.163
CAC: ignored search reply- proceeding
[...]
CAC: ... Unable to allocate a new socket ...
CAC: for MDIZ1D2G:bdata on 192.168.21.163
CAC: ignored search reply- proceeding
CAC: ... Unable to allocate a new socket ...
CAC: for MDIZ1D2G:start.PROC on 192.168.21.163
CAC: ignored search reply- proceeding
CAC: ... Unable to allocate a new socket ...
CAC: for MDIZ1D2G:bdata on 192.168.21.163
CAC: ignored search reply- proceeding
seqShow
Program Name Task ID Task Name SS Name
iocOnOff 13576804 iocOnOff on_off
value = 0 = 0x0
-> CAC: ... Unable to allocate a new socket ...
CAC: for MDIZ1D2G:start.PROC on 192.168.21.163
CAC: ignored search reply- proceeding
[...]
CAC: ... Unable to allocate a new socket ...
CAC: for MDIZ1D2G:start.PROC on 192.168.21.163
CAC: ignored search reply- proceeding
CAC: ... Unable to allocate a new socket ...
CAC: for MDIZ1D2G:bdata on 192.168.21.163
CAC: ignored search reply- proceeding
->
-> ipstatShow
total 2944
badsum 0
tooshort 0
toosmall 0
badhlen 0
badlen 0
fragments 678
fragdropped 0
fragtimeout 0
forward 0
cantforward 0
redirectsent 0
value = 1 = 0x1
-> tcpstatShow
TCP:
280 packets sent
59 data packets (4509 bytes)
0 data packet (0 byte) retransmitted
78 ack-only packets (34 delayed)
0 URG only packet
0 window probe packet
114 window update packets
29 control packets
287 packets received
85 acks (for 4536 bytes)
4 duplicate acks
0 ack for unsent data
177 packets (179264 bytes) received in-sequence
0 completely duplicate packet (0 byte)
0 packet with some dup. data (0 byte duped)
0 out-of-order packet (0 byte)
0 packet (0 byte) of data after window
0 window probe
0 window update packet
1 packet received after close
0 discarded for bad checksum
0 discarded for bad header offset field
0 discarded because packet too short
18 connection requests
21 connection accepts
39 connections established (including accepts)
103 connections closed (including 0 drop)
1 embryonic connection dropped
85 segments updated rtt (of 103 attempts)
5 retransmit timeouts
0 connection dropped by rexmit timeout
0 persist timeout
0 keepalive timeout
0 keepalive probe sent
0 connection dropped by keepalive
value = 36 = 0x24 = '$'
-> ipstatShow
total 3423
badsum 0
tooshort 0
toosmall 0
badhlen 0
badlen 0
fragments 678
fragdropped 0
fragtimeout 0
forward 0
cantforward 0
redirectsent 0
value = 1 = 0x1
-> inetstatShow
Active Internet connections (including servers)
PCB Proto Recv-Q Send-Q Local Address Foreign Address (state)
-------- ----- ------ ------ ------------------ ------------------ -------
e1dd8c TCP 0 0 192.168.21.178.103 192.168.21.175.506 ESTABLISHED
ffea0c TCP 0 0 192.168.21.178.103 192.168.21.162.506 ESTABLISHED
fc080c TCP 0 0 192.168.21.178.103 192.168.21.169.506 ESTABLISHED
ffea8c TCP 0 0 192.168.21.178.103 192.168.21.168.506 ESTABLISHED
fc0a8c TCP 0 0 192.168.21.178.103 192.168.21.165.506 ESTABLISHED
e1e10c TCP 0 0 192.168.21.178.103 192.168.21.172.506 ESTABLISHED
fc090c TCP 0 0 192.168.21.178.103 192.168.21.173.506 ESTABLISHED
ffeb0c TCP 0 0 192.168.21.178.103 192.168.21.176.506 ESTABLISHED
fc098c TCP 0 0 192.168.21.178.103 192.168.21.161.506 ESTABLISHED
ffec0c TCP 0 0 192.168.21.178.103 192.168.21.174.506 ESTABLISHED
ffed0c TCP 0 0 192.168.21.178.102 192.168.21.166.506 ESTABLISHED
d6a68c TCP 0 0 192.168.21.178.102 192.168.21.164.506 ESTABLISHED
db768c TCP 0 0 192.168.21.178.102 192.168.21.167.506 ESTABLISHED
fc0e0c TCP 0 0 192.168.21.178.102 192.168.21.171.506 ESTABLISHED
e03c8c TCP 0 0 192.168.21.178.102 192.168.21.161.506 ESTABLISHED
db7f0c TCP 0 0 192.168.21.178.506 192.168.21.102.138 ESTABLISHED
e0408c TCP 0 0 192.168.21.178.506 192.168.21.172.102 ESTABLISHED
e03d8c TCP 0 0 192.168.21.178.506 192.168.21.168.102 ESTABLISHED
d99a0c TCP 0 0 192.168.21.178.506 192.168.21.167.102 ESTABLISHED
f7bc8c TCP 0 0 192.168.21.178.506 192.168.21.170.102 ESTABLISHED
e08f0c TCP 0 0 192.168.21.178.506 192.168.21.176.102 ESTABLISHED
e0450c TCP 0 0 192.168.21.178.506 192.168.21.169.102 ESTABLISHED
e1d80c TCP 0 0 192.168.21.178.506 192.168.21.166.102 ESTABLISHED
e03f8c TCP 0 0 192.168.21.178.506 192.168.21.174.102 ESTABLISHED
e0938c TCP 0 0 192.168.21.178.506 192.168.21.173.102 ESTABLISHED
e0930c TCP 0 0 192.168.21.178.506 192.168.21.163.102 ESTABLISHED
e0918c TCP 0 0 192.168.21.178.506 192.168.21.161.102 ESTABLISHED
e0430c TCP 0 0 192.168.21.178.506 192.168.21.165.102 ESTABLISHED
e08e8c TCP 0 0 192.168.21.178.506 192.168.21.175.102 ESTABLISHED
e08e0c TCP 0 0 192.168.21.178.506 192.168.21.171.102 ESTABLISHED
f7bb8c TCP 0 0 192.168.21.178.506 192.168.21.162.102 ESTABLISHED
f7be0c TCP 0 0 192.168.21.178.506 192.168.21.164.102 ESTABLISHED
e1da0c TCP 0 0 0.0.0.0.5064 0.0.0.0.0 LISTEN
fc100c TCP 0 0 192.168.21.178.102 192.168.21.170.506 ESTABLISHED
fc120c TCP 0 0 0.0.0.0.111 0.0.0.0.0 LISTEN
fc168c TCP 0 0 0.0.0.0.1008 0.0.0.0.0 LISTEN
fc188c TCP 0 0 0.0.0.0.23 0.0.0.0.0 LISTEN
e0398c UDP 0 0 192.168.21.178.103 192.168.21.178.103
e0440c UDP 0 0 0.0.0.0.1031 0.0.0.0.0
e1d88c UDP 0 0 0.0.0.0.1030 0.0.0.0.0
e1d90c UDP 0 0 0.0.0.0.5064 0.0.0.0.0
fc148c UDP 0 0 192.168.21.178.102 192.168.21.178.102
fc0d0c UDP 0 0 0.0.0.0.1028 0.0.0.0.0
fc110c UDP 0 0 0.0.0.0.1027 0.0.0.0.0
fc0e8c UDP 0 0 0.0.0.0.1026 0.0.0.0.0
fc118c UDP 0 0 0.0.0.0.5065 0.0.0.0.0
fc130c UDP 0 0 0.0.0.0.1001 0.0.0.0.0
fc150c UDP 0 0 0.0.0.0.111 0.0.0.0.0
value = 1 = 0x1
->
----- 8< -------------------------------
- Replies:
- Re: CAC running out of sockets Marty Kraimer
- Navigate by Date:
- Prev:
Where is Pscript version of the EPICS Record Reference Man? Ernest Williams Jr.
- Next:
Re: CAC running out of sockets Marty Kraimer
- Index:
1994
1995
1996
1997
<1998>
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Where is Pscript version of the EPICS Record Reference Man? Ernest Williams Jr.
- Next:
Re: CAC running out of sockets Marty Kraimer
- Index:
1994
1995
1996
1997
<1998>
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|