Hi all (again)! This what is happening: I have both the smsbox and bearer box running on the same server, then, when I send a http admin request to reset : localhost:25569/restart?password=xxx it says Restarting... so it should be OK
The problem is that the smsbox never makes it to connect back again, and the bearer raises CPU usage to near to 90% to 99%, but the smsbox never makes it. If I re-run the smsbox by hand again, it connects correctly but the bearer keeps using a lot of CPU and works very slow. I'm running both with the -d -P modifiers, Heres what smsbox says about it: 2004-09-22 00:40:53 [32223] [0] INFO: Bearerbox told us to restart 2004-09-22 00:40:53 [32223] [0] INFO: Received (and handled?) 0 requests in 534 seconds (0.00 per second) 2004-09-22 00:40:53 [32223] [0] INFO: Kannel smsbox terminating. 2004-09-22 00:40:53 [32223] [7] DEBUG: Thread 7 (gw/heartbeat.c:heartbeat_thread) terminates. 2004-09-22 00:40:53 [32223] [0] DEBUG: Waiting for 2 (gwlib/http.c:server_thread) to terminate 2004-09-22 00:40:53 [32223] [3] DEBUG: HTTP: No clients with requests, quitting. 2004-09-22 00:40:53 [32223] [3] DEBUG: Thread 3 (gw/smsbox.c:sendsms_thread) terminates. 2004-09-22 00:40:53 [32223] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) terminates. 2004-09-22 00:40:53 [32223] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) terminates. 2004-09-22 00:40:53 [32223] [0] DEBUG: Waiting for 4 (gw/smsbox.c:obey_request_thread) to terminate 2004-09-22 00:40:53 [32223] [6] DEBUG: Thread 6 (gw/smsbox.c:http_queue_thread) terminates. 2004-09-22 00:40:53 [32223] [4] DEBUG: Thread 4 (gw/smsbox.c:obey_request_thread) terminates. 2004-09-22 00:40:53 [32223] [0] DEBUG: Waiting for 5 (gw/smsbox.c:url_result_thread) to terminate 2004-09-22 00:40:53 [32223] [5] DEBUG: Thread 5 (gw/smsbox.c:url_result_thread) terminates. 2004-09-22 00:40:58 [32223] [0] DEBUG: Immutable octet strings: 287. 2004-09-22 00:40:58 [32370] [0] INFO: Added logfile `/opt/Kannel/concurso/logs/smsbox.log' with level `0'. 2004-09-22 00:40:58 [32370] [0] INFO: Service global sender set as '2665' 2004-09-22 00:40:58 [32370] [0] INFO: Logging accesses to '/opt/Kannel/concurso/logs/smsbox.access'. 2004-09-22 00:40:58 [32370] [0] INFO: Started access logfile `/opt/Kannel/concurso/logs/smsbox.access'. 2004-09-22 00:40:58 [32370] [0] INFO: HTTP: Opening server at port 2665. 2004-09-22 00:40:58 [32370] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller) 2004-09-22 00:40:58 [32370] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread) 2004-09-22 00:40:58 [32370] [0] INFO: Set up send sms service at port 2665 2004-09-22 00:40:58 [32370] [0] DEBUG: Started thread 3 (gw/smsbox.c:sendsms_thread) 2004-09-22 00:40:58 [32370] [0] DEBUG: ---------------------------------------------- 2004-09-22 00:40:58 [32370] [0] DEBUG: Kannel smsbox version cvs-20040917 starting 2004-09-22 00:40:58 [32370] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 32370. 2004-09-22 00:40:58 [32370] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) maps to pid 32370. 2004-09-22 00:40:58 [32370] [3] DEBUG: Thread 3 (gw/smsbox.c:sendsms_thread) maps to pid 32370. 2004-09-22 00:40:58 [32370] [0] DEBUG: Started thread 4 (gw/smsbox.c:obey_request_thread) 2004-09-22 00:40:58 [32370] [0] DEBUG: Started thread 5 (gw/smsbox.c:url_result_thread) 2004-09-22 00:40:58 [32370] [0] DEBUG: Started thread 6 (gw/smsbox.c:http_queue_thread) 2004-09-22 00:40:58 [32370] [0] INFO: Connected to bearerbox at localhost port 26657. 2004-09-22 00:40:58 [32370] [0] DEBUG: Started thread 7 (gw/heartbeat.c:heartbeat_thread) 2004-09-22 00:40:58 [32370] [0] INFO: Connection to bearerbox timed out after -1.00 seconds. 2004-09-22 00:40:58 [32370] [0] INFO: Received (and handled?) 0 requests in 0 seconds (nan per second) 2004-09-22 00:40:58 [32370] [0] INFO: Kannel smsbox terminating. 2004-09-22 00:40:58 [32370] [4] DEBUG: Thread 4 (gw/smsbox.c:obey_request_thread) maps to pid 32370. 2004-09-22 00:40:58 [32370] [5] DEBUG: Thread 5 (gw/smsbox.c:url_result_thread) maps to pid 32370. 2004-09-22 00:40:58 [32370] [6] DEBUG: Thread 6 (gw/smsbox.c:http_queue_thread) maps to pid 32370. 2004-09-22 00:40:58 [32370] [7] DEBUG: Thread 7 (gw/heartbeat.c:heartbeat_thread) maps to pid 32370. 2004-09-22 00:40:58 [32370] [7] DEBUG: Thread 7 (gw/heartbeat.c:heartbeat_thread) terminates. 2004-09-22 00:40:58 [32370] [0] DEBUG: Waiting for 2 (gwlib/http.c:server_thread) to terminate 2004-09-22 00:40:58 [32370] [3] DEBUG: HTTP: No clients with requests, quitting. 2004-09-22 00:40:58 [32370] [3] DEBUG: Thread 3 (gw/smsbox.c:sendsms_thread) terminates. 2004-09-22 00:40:58 [32370] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) terminates. 2004-09-22 00:40:58 [32370] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) terminates. 2004-09-22 00:40:58 [32370] [0] DEBUG: Waiting for 4 (gw/smsbox.c:obey_request_thread) to terminate 2004-09-22 00:40:58 [32370] [4] DEBUG: Thread 4 (gw/smsbox.c:obey_request_thread) terminates. 2004-09-22 00:40:58 [32370] [6] DEBUG: Thread 6 (gw/smsbox.c:http_queue_thread) terminates. 2004-09-22 00:40:58 [32370] [0] DEBUG: Waiting for 5 (gw/smsbox.c:url_result_thread) to terminate 2004-09-22 00:40:58 [32370] [5] DEBUG: Thread 5 (gw/smsbox.c:url_result_thread) terminates. 2004-09-22 00:40:58 [32370] [0] DEBUG: Immutable octet strings: 287. Here's what bearerbox says about it: 2004-09-22 00:40:52 [32208] [2] DEBUG: HTTP: Creating HTTPClient for `217.77.32.181'. 2004-09-22 00:40:53 [32208] [3] DEBUG: Shutting down Kannel... 2004-09-22 00:40:53 [32208] [3] DEBUG: shutting down smsc 2004-09-22 00:40:53 [32208] [3] DEBUG: Shutting down SMSCConn SMPP:1xx.2xx.1xx.xx:8808/8808:micel2665:VMA (slow) 2004-09-22 00:40:53 [32208] [8] DEBUG: Thread 8 (gw/bb_udp.c:udp_receiver) terminates. 2004-09-22 00:40:53 [32208] [10] DEBUG: Thread 10 (gw/bb_udp.c:udp_receiver) terminates. 2004-09-22 00:40:53 [32208] [9] DEBUG: Thread 9 (gw/bb_udp.c:udp_sender) terminates. 2004-09-22 00:40:53 [32208] [11] DEBUG: Thread 11 (gw/bb_udp.c:udp_sender) terminates. 2004-09-22 00:40:53 [32208] [3] DEBUG: SMSCConn SMPP:1xx.2xx.1xx.xx:8808/8808:micel2665:VMA shut down. 2004-09-22 00:40:53 [32208] [3] DEBUG: shutting down udp 2004-09-22 00:40:53 [32208] [3] DEBUG: HTTP: Resetting HTTPClient for `1xx.2xx.1xx.xx'. 2004-09-22 00:40:53 [32208] [4] DEBUG: Thread 4 (gw/bb_boxc.c:sms_to_smsboxes) terminates. 2004-09-22 00:40:53 [32208] [14] DEBUG: send_msg: sending msg to boxc: <cool_smsbox> 2004-09-22 00:40:53 [32208] [14] DEBUG: Thread 14 (gw/bb_boxc.c:boxc_sender) terminates. 2004-09-22 00:40:53 [32208] [13] INFO: Connection closed by the box <127.0.0.1> 2004-09-22 00:40:53 [32208] [13] DEBUG: Thread 13 (gw/bb_boxc.c:function) terminates. 2004-09-22 00:40:53 [32208] [7] DEBUG: Thread 7 (gw/bb_smscconn.c:sms_router) terminates. 2004-09-22 00:40:53 [32208] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run) terminates. 2004-09-22 00:40:55 [32208] [0] WARNING: Killing signal or HTTP admin command received, shutting down... 2004-09-22 00:40:55 [32208] [0] INFO: All flow threads have died, killing core 2004-09-22 00:40:55 [32208] [0] DEBUG: Waiting for 2 (gwlib/http.c:server_thread) to terminate 2004-09-22 00:40:55 [32208] [3] DEBUG: HTTP: No clients with requests, quitting. 2004-09-22 00:40:55 [32208] [3] DEBUG: Thread 3 (gw/bb_http.c:httpadmin_run) terminates. 2004-09-22 00:40:55 [32208] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) terminates. 2004-09-22 00:40:55 [32208] [1] WARNING: Destroying fdset with 1 active entries. 2004-09-22 00:40:55 [32208] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) terminates. 2004-09-22 00:40:55 [32208] [0] DEBUG: final clean-up for SMSCConn 2004-09-22 00:40:55 [32208] [0] INFO: Total WDP messages: received 0, sent 0 2004-09-22 00:40:55 [32208] [0] INFO: Total SMS messages: received 0, sent 0 2004-09-22 00:40:55 [32208] [0] DEBUG: Immutable octet strings: 308. 2004-09-22 00:40:55 [32356] [0] INFO: Added logfile `/opt/Kannel/concurso/logs/bearer.log' with level `0'. 2004-09-22 00:40:55 [32356] [0] INFO: Started access logfile `/opt/Kannel/concurso/logs/kannel.access'. 2004-09-22 00:40:55 [32356] [0] INFO: HTTP: Opening server at port 26659. 2004-09-22 00:40:55 [32356] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller) 2004-09-22 00:40:55 [32356] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread) 2004-09-22 00:40:55 [32356] [0] DEBUG: Started thread 3 (gw/bb_http.c:httpadmin_run) 2004-09-22 00:40:55 [32356] [0] DEBUG: starting smsbox connection module 2004-09-22 00:40:55 [32356] [0] INFO: BOXC: 'smsbox-max-pending' not set, using default (100). 2004-09-22 00:40:55 [32356] [0] DEBUG: Adding smsbox routing to id <cool_smsbox> for receiver no <2665> 2004-09-22 00:40:55 [32356] [0] DEBUG: Started thread 4 (gw/bb_boxc.c:sms_to_smsboxes) 2004-09-22 00:40:55 [32356] [0] DEBUG: Started thread 5 (gw/bb_boxc.c:smsboxc_run) 2004-09-22 00:40:55 [32356] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 32356. 2004-09-22 00:40:55 [32356] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) maps to pid 32356. 2004-09-22 00:40:55 [32356] [3] DEBUG: Thread 3 (gw/bb_http.c:httpadmin_run) maps to pid 32356. 2004-09-22 00:40:55 [32356] [4] DEBUG: Thread 4 (gw/bb_boxc.c:sms_to_smsboxes) maps to pid 32356. 2004-09-22 00:40:55 [32356] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run) maps to pid 32356. 2004-09-22 00:40:55 [32356] [0] INFO: DLR rerouting for smsc id <mi_te_2665> disabled. 2004-09-22 00:40:55 [32356] [0] INFO: Added logfile `/opt/Kannel/concurso/logs/smsc_mi_te_2665.log' with level `0'. 2004-09-22 00:40:55 [32356] [0] DEBUG: Started thread 6 (gw/smsc/smsc_smpp.c:io_thread) 2004-09-22 00:40:55 [32356] [0] DEBUG: Started thread 7 (gw/bb_smscconn.c:sms_router) 2004-09-22 00:40:55 [32356] [0] DEBUG: starting UDP sender/receiver module 2004-09-22 00:40:55 [32356] [0] INFO: Adding interface * 2004-09-22 00:40:55 [32356] [0] DEBUG: udpc_create: Bound to UDP <0.0.0.0:9200> 2004-09-22 00:40:55 [32356] [0] DEBUG: Started thread 8 (gw/bb_udp.c:udp_receiver) 2004-09-22 00:40:55 [32356] [0] DEBUG: Started thread 9 (gw/bb_udp.c:udp_sender) 2004-09-22 00:40:55 [32356] [0] DEBUG: udpc_create: Bound to UDP <0.0.0.0:9201> 2004-09-22 00:40:55 [32356] [0] DEBUG: Started thread 10 (gw/bb_udp.c:udp_receiver) 2004-09-22 00:40:55 [32356] [0] DEBUG: Started thread 11 (gw/bb_udp.c:udp_sender) 2004-09-22 00:40:55 [32356] [0] DEBUG: starting wapbox connection module 2004-09-22 00:40:55 [32356] [0] ERROR: Missing wapbox-port variable, cannot start WAP 2004-09-22 00:40:55 [32356] [0] DEBUG: starting WDP router 2004-09-22 00:40:55 [32356] [6] DEBUG: Thread 6 (gw/smsc/smsc_smpp.c:io_thread) maps to pid 32356. 2004-09-22 00:40:55 [32356] [6] INFO: Logging thread `6' to logfile `/opt/Kannel/concurso/logs/smsc_mi_te_2665.log' with level `0'. 2004-09-22 00:40:55 [32356] [0] DEBUG: Started thread 12 (gw/bearerbox.c:wdp_router) 2004-09-22 00:40:55 [32356] [0] INFO: ---------------------------------------- 2004-09-22 00:40:55 [32356] [0] INFO: Kannel bearerbox II version cvs-20040917 starting 2004-09-22 00:40:55 [32356] [0] INFO: MAIN: Start-up done, entering mainloop 2004-09-22 00:40:55 [32356] [8] DEBUG: Thread 8 (gw/bb_udp.c:udp_receiver) maps to pid 32356. 2004-09-22 00:40:55 [32356] [9] DEBUG: Thread 9 (gw/bb_udp.c:udp_sender) maps to pid 32356. 2004-09-22 00:40:55 [32356] [10] DEBUG: Thread 10 (gw/bb_udp.c:udp_receiver) maps to pid 32356. 2004-09-22 00:40:55 [32356] [11] DEBUG: Thread 11 (gw/bb_udp.c:udp_sender) maps to pid 32356. 2004-09-22 00:40:55 [32356] [12] DEBUG: Thread 12 (gw/bearerbox.c:wdp_router) maps to pid 32356. 2004-09-22 00:40:55 [32356] [12] DEBUG: udp_die: removing producers from udp-lists 2004-09-22 00:40:55 [32356] [12] DEBUG: Thread 12 (gw/bearerbox.c:wdp_router) terminates. 2004-09-22 00:40:55 [32356] [7] DEBUG: Thread 7 (gw/bb_smscconn.c:sms_router) maps to pid 32356. 2004-09-22 00:40:55 [32356] [7] DEBUG: sms_router: time to sleep 2004-09-22 00:40:55 [32356] [7] DEBUG: sms_router: list_len = 0 2004-09-22 00:40:58 [32356] [5] DEBUG: Started thread 13 (gw/bb_boxc.c:function) 2004-09-22 00:40:58 [32356] [13] DEBUG: Thread 13 (gw/bb_boxc.c:function) maps to pid 32356. 2004-09-22 00:40:58 [32356] [13] INFO: Client connected from <127.0.0.1> 2004-09-22 00:40:58 [32356] [13] DEBUG: Started thread 14 (gw/bb_boxc.c:boxc_sender) 2004-09-22 00:40:58 [32356] [14] DEBUG: Thread 14 (gw/bb_boxc.c:boxc_sender) maps to pid 32356. 2004-09-22 00:40:58 [32356] [13] DEBUG: boxc_receiver: got boxc_id <cool_smsbox> from <127.0.0.1> 2004-09-22 00:40:58 [32356] [13] INFO: Connection closed by the box <127.0.0.1> 2004-09-22 00:40:58 [32356] [14] DEBUG: send_msg: sending msg to boxc: <cool_smsbox> 2004-09-22 00:40:58 [32356] [14] DEBUG: Thread 14 (gw/bb_boxc.c:boxc_sender) terminates. 2004-09-22 00:40:58 [32356] [13] DEBUG: Thread 13 (gw/bb_boxc.c:function) terminates. 2004-09-22 00:41:31 [32356] [2] DEBUG: HTTP: Creating HTTPClient for `1xx.2xx.1xx.xx'. 2004-09-22 00:41:31 [32356] [3] DEBUG: HTTP: Resetting HTTPClient for `1xx.2xx.1xx.xx'. 2004-09-22 00:46:42 [32356] [1] DEBUG: HTTP: Destroying HTTPClient area 0x81aa380. 2004-09-22 00:46:42 [32356] [1] DEBUG: HTTP: Destroying HTTPClient for `1xx.2xx.1xx.xx'. thanks all ! == Oscar