[OpenSIPS-Users] Wrong number of children

Daniel Zanutti daniel.zanutti at gmail.com
Fri Feb 23 08:33:40 EST 2018


Hi

You should have 5 per interface + some internal control threads. I'm not
sure exactly.

Regards

On Fri, Feb 23, 2018 at 9:25 AM, xaled <xaled at web.de> wrote:

> Hi
>
>
>
> I have configured 5 children in  opensips.cfg, but 16 get logged and 18
> initiated what could be the cause of it?
>
> I search for word children in opensips directory and it only comes ones in
> opensips.conf.
>
>
>
> children=5
>
>
>
> Feb 23 13:07:09 srv01 opensips: DBG:core:daemonize: waiting for status
> code from children
>
> Feb 23 13:07:09 srv01 opensips: DBG:core:count_init_children: 16 children
> are going to be inited
>
>
>
> root at dus-appsrv01:/var/log/opensips# ps ax|grep sips
>
> 14854 ?        S      0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14856 ?        S      0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14857 ?        S      0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14858 ?        S      0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14861 ?        S      0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14862 ?        S      0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14863 ?        S      0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14864 ?        S      0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14865 ?        S      0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14867 ?        S      0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14869 ?        S      0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14870 ?        S      0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14871 ?        S      0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14872 ?        S      0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14874 ?        S      0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14875 ?        S      0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14876 ?        S      0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14877 ?        S      0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
>
>
> With commended children parameter I get 19 children in the log and 21 in
> reality:
>
>
>
> Feb 23 13:13:24 dus-appsrv01 opensips: DBG:core:daemonize: waiting for
> status code from children
>
> Feb 23 13:13:24 dus-appsrv01 opensips: DBG:core:count_init_children: 19
> children are going to be inited
>
>
>
> root at srv01:/var/log/opensips# ps ax|grep sips
>
> 14723 ?        S      0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14725 ?        S      0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14726 ?        S      0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14727 ?        S      0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14730 ?        S      0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14731 ?        S      0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14732 ?        S      0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14733 ?        S      0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14734 ?        S      0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14736 ?        S      0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14737 ?        S      0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14738 ?        S      0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14739 ?        S      0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14741 ?        S      0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14742 ?        S      0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14743 ?        S      0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14744 ?        S      0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14745 ?        S      0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14748 ?        S      0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14749 ?        S      0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
> 14750 ?        S      0:00 /usr/sbin/opensips -P
> /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg -m 64 -M 4
>
>
>
> root at srv01:/etc/opensips# opensips -V
>
> version: opensips 2.3.3 (x86_64/linux)
>
> flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC,
> F_MALLOC, FAST_LOCK-ADAPTIVE_WAIT
>
> ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
> MAX_URI_SIZE 1024, BUF_SIZE 65535
>
> poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
>
> main.c compiled on  with gcc 6.3.0
>
>
>
> Thanks,
>
> Xaled
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20180223/7b19764a/attachment.html>


More information about the Users mailing list