[OpenSIPS-Users] Opensips restart and hanging process (dialogs?)

Podrigal, Aron aronp at guaranteedplus.com
Thu May 7 10:12:33 CEST 2015


What distro are u using? This sounds more like a problem in the init
script,  where it tries to restart opensips before the last process has
existed, which then fails to start.  Try adding  - - retry option to
start-stop-daemon.
On May 7, 2015 4:01 AM, "Max Mühlbronner" <mm at 42com.com> wrote:

>
> Comparing "opensipsctl ps" and the pid of the remaining process shows it's
> the attendant process.
>
> root at opensips1:/etc/opensips# opensipsctl ps
>
> Process:: ID=0 PID=25935 Type=attendant
>
>
>
> root at opensips1:/etc/opensips# /etc/init.d/opensips restart
>
> Restarting opensips: opensips^[[Aroot at opensips1:/etc/opensips# ps
> uax|grep opensips
>
> opensips 25935 0.0 2.1 962160 21768 ? S 09:44 0:00 /sbin/opensips -P
> /var/run/opensips/opensips.pid -m 896 -M 32 -u opensips -g opensips
>
>
> After a few seconds the attendant process is gone, and opensips is not
> running anymore. Did anyone experience something like this before?
>
>
> BR
>
> Max M.
>
> On 05.05.2015 11:00, Max Mühlbronner wrote:
>
>> Hi,
>>
>> when restarting Opensips it will shut down all the processes immediately,
>> but there is still a single process left "hanging" (cpu load) which
>> eventually exits after some time. It is not possible to restart Opensips
>> until this process is killed/quits.
>>
>> root at opensips1:~# /etc/init.d/opensips restart
>> Restarting opensips: opensipsroot at opensips1:~#
>>
>>
>> Opensips version is 1.11.4-tls. But we also had the same issue with 1.7.x
>> and 1.10.X.
>>
>> There are ~3000 active dialogs, but it should not take that long to dump
>> everything into the database. (db_mode is set to "2") right?
>>
>> Any hints/ideas are appreciated.
>>
>>
>> Best Regards
>>
>>
>> Max M.
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>
>
>
> _______________________________________________
> 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/20150507/998d4042/attachment.htm>


More information about the Users mailing list