Hi,

    Already set to static in /etc/hosts :).

Catalin


Alejandro Guerrieri wrote:
Another issue that may arise is regading name resolution.
If you're forwarding your requests to another server using a real domain name instead of an IP, at least one name server is course involved. Under very high load or under a name server failure, messages will be kept by the smsbox throwing an "ERROR: error while gw_gethostbyname occurs" to the smsbox.log. It's obvious: smsbox wouldn't know were to forward the requests and we'll keep trying until the named service comes back online. If you don't notice the failure (specially if you're using your ISP's name servers and you don't control/monitor them) your store file will grow and grow accordingly. A simple solution to this is to set the domain name statically on /etc/hosts (you'll save a call to the name server also) or, if possible, replace the domain by it's IP (that's not always possible, specially if it's a virtual domain, but it's the most performing option because there's not name resolution involved). I also recommend you to set the hostname for the Kannel machine on the /etc/hosts file of the web server to minimize name resolution on the web server also (That's only if you are using different machines for Kannel and web server, I mean). Hope it helps,

On 8/7/05, *Wilfried Goesgens* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

    On Sun, Aug 07, 2005 at 12:38:57PM +0200, Catalin Trifu wrote:
     >       Hi,
     >
     >
     >      First of all, please forgive my persistance; I'm kinda
    desperate now :(
     >      I kept an eye on kannel and discovered that it does not
    close the socket
     > connections to the apache server which is handling the messages.
     >      lsof -i shows around 7000 connection on CLOSE_WAIT status
    (even when traffic is low)
     > while the apache machine lsof -i shows none (which is normal
    actually).
     >      Apache is configured with WaitTimeout 15 and KeepAlive On.
     >      Do you think it would help to get rid of KeepAlive and make
    Timeout something
     > like 10 seconds.
     >      Any ideas ? Could it be some sort of bug in kannel or am I
    doing something
     > completely wrong.
     >
     >
     > Thanks,
     > Catalin

    i suggest you to make
    immediate-sendsms-reply = true

    in your smsbox config.

    I would suggest to remove this config option and its if's from
    smsbox, as i 've experienced
    too, that it makes kannel extremely unreliable.

     >
     >
     >
     > Catalin Trifu wrote:
     > >    Hi,
     > >   I noticed that kannel no longer forwards the incoming SMSes
    after some time
     > >of functioning.
     > >   I checked if they are received from SMSC and they were. The
    apache which
     > >was supposed to get them was up and running well (same network).
     > >   After a restart everything is back to normal again.
     > >   Any ideas.
     > >Thanks,
     > >Catalin
     >
     >
     >

    --




--
Alejandro Guerrieri
Magicom
http://www.magicom-bcn.net/


Reply via email to