4 The run_test.pl script tests the connection purging using the default
5 transport protocol (iiop).
7 Usage: run_test.pl [-u | -s]
11 There are four configurator files, one for each strategy. Each configurator
12 file sets the -ORBConnectionCacheMax to 10 and the
13 -ORBConnectionCachePurgePercentage to 30 (excluding client.null.conf).
14 After 10 separate connections are made, 30% of the transport cache is
15 purged in a way that corresponds to the chosen purging strategy.
17 This test is very manual at this point (due to the lack of debug interface
18 on the Transport Cache Manager). It relies on the debug output of level 1.
19 Some time, we need to add a debug interface to allow for better (less
20 manual) regression testing.
24 TAO (17539|1) - TAO_Transport_Cache_Manager::fill_set_i - 0 10
25 TAO (17539|1) IIOP connection to peer <132.200.200.10:54424> on 8
26 TAO (17539|1) - TAO_Transport_Cache_Manager::bind_i (0xffbeef34, 0xc3990)
27 TAO (17519|1) - Some stuff to send
28 TAO (17519|1) - Some stuff to send
29 TAO (17539|1) - TAO_Transport_Cache_Manager::fill_set_i - 1 10
30 TAO (17539|1) IIOP connection to peer <132.200.200.10:54425> on 9
31 TAO (17539|1) - TAO_Transport_Cache_Manager::bind_i (0xffbeef34, 0xc4118)
32 TAO (17520|1) - Some stuff to send
33 TAO (17539|1) - TAO_Transport_Cache_Manager::fill_set_i - 2 10
34 TAO (17539|1) IIOP connection to peer <132.200.200.10:54426> on 10
35 TAO (17539|1) - TAO_Transport_Cache_Manager::bind_i (0xffbeef34, 0xc4d50)
36 TAO (17521|1) - Some stuff to send
37 TAO (17539|1) - TAO_Transport_Cache_Manager::fill_set_i - 3 10
38 TAO (17539|1) IIOP connection to peer <132.200.200.10:54427> on 11
39 TAO (17539|1) - TAO_Transport_Cache_Manager::bind_i (0xffbeef34, 0xc42b0)
40 TAO (17522|1) - Some stuff to send
44 TAO (17539|1) - TAO_Transport_Cache_Manager::fill_set_i - 5 10
45 TAO (17539|1) IIOP connection to peer <132.200.200.10:54429> on 13
46 TAO (17539|1) - TAO_Transport_Cache_Manager::bind_i (0xffbeef34, 0xc4ff0)
47 TAO (17524|1) - Some stuff to send
48 TAO (17519|1) - Some stuff to send
50 # Connection #1 (0xc3990) is used after the 5 new connection is made
54 TAO (17539|1) - TAO_Transport_Cache_Manager::fill_set_i - 10 10
55 TAO (17539|1) - Purging 3 of 10 cache entries
56 TAO (17539|1) - Idle transport found in cache: 0xc4118
57 TAO (17539|1) IIOP_Connection_Handler::handle_close (-1, 511)
58 TAO (17539|1) - Idle transport found in cache: 0xc4d50
59 TAO (17539|1) IIOP_Connection_Handler::handle_close (-1, 511)
60 TAO (17539|1) - Idle transport found in cache: 0xc42b0
61 TAO (17539|1) IIOP_Connection_Handler::handle_close (-1, 511)
63 # Note that Connection #1 is not closed here
65 TAO (17539|1) IIOP connection to peer <132.200.200.10:54434> on 9
66 TAO (17539|1) - TAO_Transport_Cache_Manager::bind_i (0xffbeef34, 0xc4338)
67 TAO (17529|1) - Some stuff to send
68 TAO (17539|1) - TAO_Transport_Cache_Manager::fill_set_i - 8 10
69 TAO (17539|1) IIOP connection to peer <132.200.200.10:54435> on 10
70 TAO (17539|1) - TAO_Transport_Cache_Manager::bind_i (0xffbeef34, 0xdbc10)
71 TAO (17530|1) - Some stuff to send
72 TAO (17539|1) - TAO_Transport_Cache_Manager::fill_set_i - 9 10
73 TAO (17539|1) IIOP connection to peer <132.200.200.10:54436> on 11
74 TAO (17539|1) - TAO_Transport_Cache_Manager::bind_i (0xffbeef34, 0xdd540)
75 TAO (17531|1) - Some stuff to send
76 TAO (17539|1) - TAO_Transport_Cache_Manager::fill_set_i - 10 10
77 TAO (17539|1) - Purging 3 of 10 cache entries
78 TAO (17539|1) - Idle transport found in cache: 0xc4e70
79 TAO (17539|1) IIOP_Connection_Handler::handle_close (-1, 511)
80 TAO (17539|1) - Idle transport found in cache: 0xc4ff0
81 TAO (17539|1) IIOP_Connection_Handler::handle_close (-1, 511)
82 TAO (17539|1) - Idle transport found in cache: 0xc3990
83 TAO (17539|1) IIOP_Connection_Handler::handle_close (-1, 511)
85 # Connection #1 (0xc3990)is the sixth transport closed (as is expected)
93 TAO (17540|1) - TAO_Transport_Cache_Manager::fill_set_i - 0 10
94 TAO (17540|1) IIOP connection to peer <132.200.200.10:54424> on 8
95 TAO (17540|1) - TAO_Transport_Cache_Manager::bind_i (0xffbeef34, 0xc3990)
96 TAO (17519|1) - Some stuff to send
97 TAO (17519|1) - Some stuff to send
99 # Connection #1 (0xc3990) is used twice upon creation
101 TAO (17540|1) - TAO_Transport_Cache_Manager::fill_set_i - 1 10
102 TAO (17540|1) IIOP connection to peer <132.200.200.10:54425> on 9
103 TAO (17540|1) - TAO_Transport_Cache_Manager::bind_i (0xffbeef34, 0xc4118)
104 TAO (17520|1) - Some stuff to send
105 TAO (17540|1) - TAO_Transport_Cache_Manager::fill_set_i - 2 10
106 TAO (17540|1) IIOP connection to peer <132.200.200.10:54426> on 10
107 TAO (17540|1) - TAO_Transport_Cache_Manager::bind_i (0xffbeef34, 0xc4d50)
108 TAO (17521|1) - Some stuff to send
109 TAO (17540|1) - TAO_Transport_Cache_Manager::fill_set_i - 3 10
110 TAO (17540|1) IIOP connection to peer <132.200.200.10:54427> on 11
111 TAO (17540|1) - TAO_Transport_Cache_Manager::bind_i (0xffbeef34, 0xc42b0)
112 TAO (17522|1) - Some stuff to send
116 TAO (17540|1) - TAO_Transport_Cache_Manager::fill_set_i - 10 10
117 TAO (17540|1) - Purging 3 of 10 cache entries
118 TAO (17540|1) - Idle transport found in cache: 0xc4118
119 TAO (17540|1) IIOP_Connection_Handler::handle_close (-1, 511)
120 TAO (17540|1) - Idle transport found in cache: 0xc4d50
121 TAO (17540|1) IIOP_Connection_Handler::handle_close (-1, 511)
122 TAO (17540|1) - Idle transport found in cache: 0xc42b0
123 TAO (17540|1) IIOP_Connection_Handler::handle_close (-1, 511)
127 TAO (17540|1) - Purging 3 of 10 cache entries
128 TAO (17540|1) - Idle transport found in cache: 0xc4e70
129 TAO (17540|1) IIOP_Connection_Handler::handle_close (-1, 511)
130 TAO (17540|1) - Idle transport found in cache: 0xc4ff0
131 TAO (17540|1) IIOP_Connection_Handler::handle_close (-1, 511)
132 TAO (17540|1) - Idle transport found in cache: 0xdb088
133 TAO (17540|1) IIOP_Connection_Handler::handle_close (-1, 511)
137 TAO (17540|1) - Purging 3 of 10 cache entries
138 TAO (17540|1) - Idle transport found in cache: 0xdb6f8
139 TAO (17540|1) IIOP_Connection_Handler::handle_close (-1, 511)
140 TAO (17540|1) - Idle transport found in cache: 0xdb8a8
141 TAO (17540|1) IIOP_Connection_Handler::handle_close (-1, 511)
142 TAO (17540|1) - Idle transport found in cache: 0xdc1e0
143 TAO (17540|1) IIOP_Connection_Handler::handle_close (-1, 511)
147 TAO (17540|1) - Purging 3 of 10 cache entries
148 TAO (17540|1) - Idle transport found in cache: 0xc4338
149 TAO (17540|1) IIOP_Connection_Handler::handle_close (-1, 511)
150 TAO (17540|1) - Idle transport found in cache: 0xdbc10
151 TAO (17540|1) IIOP_Connection_Handler::handle_close (-1, 511)
152 TAO (17540|1) - Idle transport found in cache: 0xdd540
153 TAO (17540|1) IIOP_Connection_Handler::handle_close (-1, 511)
158 # Connection #1 (0xc3990) is never purged since was used more frequently
159 # than any other connection
163 TAO (17541|1) - TAO_Transport_Cache_Manager::fill_set_i - 0 10
164 TAO (17541|1) IIOP connection to peer <132.200.200.10:54424> on 8
165 TAO (17541|1) - TAO_Transport_Cache_Manager::bind_i (0xffbeef34, 0xc3990)
166 TAO (17519|1) - Some stuff to send
167 TAO (17519|1) - Some stuff to send
168 TAO (17541|1) - TAO_Transport_Cache_Manager::fill_set_i - 1 10
169 TAO (17541|1) IIOP connection to peer <132.200.200.10:54425> on 9
170 TAO (17541|1) - TAO_Transport_Cache_Manager::bind_i (0xffbeef34, 0xc4118)
171 TAO (17520|1) - Some stuff to send
172 TAO (17541|1) - TAO_Transport_Cache_Manager::fill_set_i - 2 10
173 TAO (17541|1) IIOP connection to peer <132.200.200.10:54426> on 10
174 TAO (17541|1) - TAO_Transport_Cache_Manager::bind_i (0xffbeef34, 0xc4d50)
175 TAO (17521|1) - Some stuff to send
176 TAO (17541|1) - TAO_Transport_Cache_Manager::fill_set_i - 3 10
177 TAO (17541|1) IIOP connection to peer <132.200.200.10:54427> on 11
178 TAO (17541|1) - TAO_Transport_Cache_Manager::bind_i (0xffbeef34, 0xc42b0)
179 TAO (17522|1) - Some stuff to send
183 TAO (17541|1) - Purging 3 of 10 cache entries
184 TAO (17541|1) - Idle transport found in cache: 0xc3990
185 TAO (17541|1) IIOP_Connection_Handler::handle_close (-1, 511)
186 TAO (17541|1) - Idle transport found in cache: 0xc4118
187 TAO (17541|1) IIOP_Connection_Handler::handle_close (-1, 511)
188 TAO (17541|1) - Idle transport found in cache: 0xc4d50
189 TAO (17541|1) IIOP_Connection_Handler::handle_close (-1, 511)
191 # Connection #1 (0xc3990) is purged first reguardless of its usage
198 TAO (17542|1) IIOP connection to peer <132.200.200.10:54424> on 8
199 TAO (17542|1) - TAO_Transport_Cache_Manager::bind_i (0xffbeef34, 0xc3990)
200 TAO (17519|1) - Some stuff to send
201 TAO (17519|1) - Some stuff to send
202 TAO (17542|1) IIOP connection to peer <132.200.200.10:54425> on 9
203 TAO (17542|1) - TAO_Transport_Cache_Manager::bind_i (0xffbeef34, 0xc4118)
204 TAO (17520|1) - Some stuff to send
205 TAO (17542|1) IIOP connection to peer <132.200.200.10:54426> on 10
206 TAO (17542|1) - TAO_Transport_Cache_Manager::bind_i (0xffbeef34, 0xc4d50)
207 TAO (17521|1) - Some stuff to send
208 TAO (17542|1) IIOP connection to peer <132.200.200.10:54427> on 11
209 TAO (17542|1) - TAO_Transport_Cache_Manager::bind_i (0xffbeef34, 0xc42b0)
210 TAO (17522|1) - Some stuff to send
214 TAO (17542|1) IIOP connection to peer <132.200.200.10:54443> on 27
215 TAO (17542|1) - TAO_Transport_Cache_Manager::bind_i (0xffbeef34, 0xe5a58)
216 TAO (17538|1) - Some stuff to send
217 TAO (17542|1) IIOP_Connection_Handler::handle_close (8, 511)
218 TAO (17542|1) IIOP_Connection_Handler::handle_close (9, 511)
219 TAO (17542|1) IIOP_Connection_Handler::handle_close (10, 511)
220 TAO (17542|1) IIOP_Connection_Handler::handle_close (11, 511)
221 TAO (17542|1) IIOP_Connection_Handler::handle_close (12, 511)
222 TAO (17542|1) IIOP_Connection_Handler::handle_close (13, 511)
223 TAO (17542|1) IIOP_Connection_Handler::handle_close (14, 511)
224 TAO (17542|1) IIOP_Connection_Handler::handle_close (15, 511)
225 TAO (17542|1) IIOP_Connection_Handler::handle_close (16, 511)
226 TAO (17542|1) IIOP_Connection_Handler::handle_close (17, 511)
227 TAO (17542|1) IIOP_Connection_Handler::handle_close (18, 511)
228 TAO (17542|1) IIOP_Connection_Handler::handle_close (19, 511)
229 TAO (17542|1) IIOP_Connection_Handler::handle_close (20, 511)
230 TAO (17542|1) IIOP_Connection_Handler::handle_close (21, 511)
231 TAO (17542|1) IIOP_Connection_Handler::handle_close (22, 511)
232 TAO (17542|1) IIOP_Connection_Handler::handle_close (23, 511)
233 TAO (17542|1) IIOP_Connection_Handler::handle_close (24, 511)
234 TAO (17542|1) IIOP_Connection_Handler::handle_close (25, 511)
235 TAO (17542|1) IIOP_Connection_Handler::handle_close (26, 511)
236 TAO (17542|1) IIOP_Connection_Handler::handle_close (27, 511)
238 # No purging should take place at all