[OpenSIPS-Users] number of opensips children

opensipslist at encambio.com opensipslist at encambio.com
Fri Dec 18 12:36:26 CET 2009


Hello,

An lun., déc 14, 2009, Stanisław PITUCHA schrieb:
>2009/12/14 Jeff Pyle <jpyle at fidelityvoice.com>:
>> I'm trying to determine the "proper" number of opensips children for my
>> setup.
>
Me too.

>Unless you supply telephony to everyone in a small city, it will be
>below 32 ;)
>
Okay, I've decided to start low and increase the children as soon as
I notice performance problems. Is this a good strategy to learn how
many children you need?

I turn off TCP completly and set children to the lowest value:

  listen=udp:name.host.tld:5060
  #listen=tls:name.host.tld:5061
  #disable_tls = 1
  children = 1
  #tcp_children = 1
  fork = yes

...look at this:

  # ps -ef | grep opensips
  osuser 17127 0:00 /pfx/sbin/opensips -P /pfx/var/opensips/opensips.pid
  osuser 17131 0:00 /pfx/sbin/opensips -P /pfx/var/opensips/opensips.pid
  osuser 17128 0:00 /pfx/sbin/opensips -P /pfx/var/opensips/opensips.pid
  osuser 17132 0:00 /pfx/sbin/opensips -P /pfx/var/opensips/opensips.pid
  osuser 17125 0:00 /pfx/sbin/opensips -P /pfx/var/opensips/opensips.pid
  osuser 17130 0:00 /pfx/sbin/opensips -P /pfx/var/opensips/opensips.pid
  osuser 17129 0:00 /pfx/sbin/opensips -P /pfx/var/opensips/opensips.pid

Okay I understand that one of them is the master process and that I
should expect an additional process due to the forking (fork=yes),
but why are there 7 (!) processes being spawned? I do have SRV and
NAPTR records in DNS, can it be due to them?

Regards,
Brian



More information about the Users mailing list