[ic] Interchange on FreeBSD

jojo@buchonline.net jojo@buchonline.net
Tue, 5 Dec 2000 10:49:21 +0100 (CET)


New infos....

Ive not forget to restart the IC Server. Im sure, the setting of my
catalog.cfg and interchange.cfg is right. Im still in a muddle, why
can I see more than one IC Server running (via top), if Ive

Variable   TRAFFIC    low
#ifdef TRAFFIC =~ /low/i
Message Low traffic settings.
HouseKeeping 3
MaxServers   0
PIDcheck     0
#endif

? I was very curious and Ive used the ab program with

ab -k -c 50 -n 50000 http://www.buchonline.org/cgi-bin/icsimple/testx

and I get

------------snip-------------
Mon Dec  4 17:09:07 CET 2000

This is ApacheBench, Version 1.3a
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 1998-1999 The Apache Group, http://www.apache.org/

Server Software:        Apache/1.3.9                                       
Server Hostname:        www.buchonline.org
Server Port:            80

Document Path:          /cgi-bin/icsimple/testx
Document Length:        211 bytes

Concurrency Level:      50
Time taken for tests:   12686.830 seconds
Complete requests:      50000
Failed requests:        0
Keep-Alive requests:    0
Total transferred:      27500550 bytes
HTML transferred:       10550211 bytes
Requests per second:    3.94
Transfer rate:          2.17 kb/s received

Connnection Times (ms)
              min   avg   max
Connect:        0     0    94
Processing:   438 12680 17110
Total:        438 12680 17204
Mon Dec  4 20:40:36 CET 2000
------------snip-------------

(Mike, I could not resist with my high concurrency levels. :-) )

#head error.log
- - - [04/Dezember/2000:17:08:03 +0100] - - STOP server (94514) on signal TERM
- - - [04/Dezember/2000:17:08:39 +0100] - - Low traffic settings.
- - - [04/Dezember/2000:17:08:39 +0100] - - Calling UI....
- - - [04/Dezember/2000:17:08:40 +0100] - - ...UI is loaded....
- - - [04/Dezember/2000:17:08:40 +0100] - - Interchange V4.6.1
- - - [04/Dezember/2000:17:08:40 +0100] - - Config 'construct' at server startup
- - - [04/Dezember/2000:17:08:40 +0100] - - Using MySQL, DSN=dbi:mysql:test_construct.
- - - [04/Dezember/2000:17:08:41 +0100] - - Config 'icsimple' at server startup
- - - [04/Dezember/2000:17:08:41 +0100] - - Using MySQL, DSN=dbi:mysql:test_icsimple
- - - [04/Dezember/2000:17:08:41 +0100] - - START server (98569) (UNIX)
- - - [04/Dezember/2000:17:08:42 +0100] - - START server (98601) (UNIX)


#top -d1 -U icjo
last pid: 52598;  load averages:  0.00,  0.03,  0.03              up 1+00:55:13  10:41:16
58 processes:  2 running, 56 sleeping
CPU states:     % user,     % nice,     % system,     % interrupt,     % idle
Mem: 74M Active, 114M Inact, 34M Wired, 11M Cache, 8347K Buf, 14M Free
Swap: 261M Total, 1552K Used, 260M Free, 1% Inuse

  PID USERNAME       PRI NICE  SIZE    RES STATE    TIME   WCPU    CPU COMMAND
98601 icjo            2   0 16100K  2580K select   8:15  0.00%  0.00% perl

from Tue Dec  5 10:42:06 CET 2000.

 
Joachim



On  4 Dec, Mike Heins wrote:
> I finally got a chance to bang on this for a bit. A few things
> I discovered:
> 
> 
> 1. Use vlink, not tlink. Now it is tlink that has trouble on FreeBSD.
> It may have troubles on other Unices.

I use vlink always.
 
> 2. The File::CounterFile module has major problems -- this is the 
> source of the "bad counter magic" errors. There seem to be locking
> issues on BSD that don't affect Linux or Solaris.
> 
> Try commenting out the count_ip(1) routine in lib/Vend/Session.pm.


That helps a lot! > IC Server is running very much better, before it
dies! :-)
 
[DEL]

But, Im in a muddle. Ive tested the IC Server with

Variable   TRAFFIC    low
#Variable   TRAFFIC    high
 
#ifdef TRAFFIC =~ /low/i
Message Low traffic settings.
HouseKeeping 3
MaxServers   0
PIDcheck     0
#endif

and I see more than one IC server.

----------snip top -d1 -U icjo --------
last pid: 89390;  load averages:  5.59,  4.89,  4.03              up 0+07:03:26  16:48:29
270 processes: 8 running, 262 sleeping
CPU states:     % user,     % nice,     % system,     % interrupt,     % idle
Mem: 127M Active, 55M Inact, 33M Wired, 10M Cache, 8249K Buf, 22M Free
Swap: 261M Total, 1680K Used, 260M Free, 1% Inuse

  PID USERNAME       PRI NICE  SIZE    RES STATE    TIME   WCPU    CPU COMMAND
77756 icjo           10   0 20292K  2892K wait     0:15  0.93%  0.93% perl
89372 icjo           85   0 20292K 14280K RUN      0:00  5.13%  0.49% perl
89384 icjo           88   0 20292K 10372K RUN      0:00  7.00%  0.34% perl
89380 icjo           88   0 20292K 10432K RUN      0:00  6.00%  0.29% perl
89370 icjo           83   0 20292K 10276K RUN      0:00  2.56%  0.24% perl
89382 icjo           87   0 20292K  9448K RUN      0:00  3.00%  0.15% perl
89387 icjo           87   0 20292K  7504K RUN      0:00  3.00%  0.15% perl
89385 icjo           86   0 20292K  4916K RUN      0:00  1.00%  0.05% perl 
---------snip---------

It this right with IC Version 4.6.1?

Joachim

BTW: Im glad to see any effort for FreeBSD! Thank you a lot! :-(=)

-- 
Hans-Joachim Leidinger
buch online                 jojo@buchonline.net
Munscheidstr. 14            FAX: +49 209 1671441
45886 Gelsenkirchen         FAX: 0209 1671441