[OpenSIPS-Users] Dailog State 5

Mike Tesliuk mike at brdsoft.com.br
Thu Dec 11 14:11:50 CET 2014



Hello Liviu,

The problem disappear after a reboot on the server , now the dialogs are 
being removed well.

Thanks for your help

Em 10/12/14 15:34, Mike Tesliuk escreveu:
> Hello Liviu,
>
> I had change the db_mode to 2  (was using this before) and change the 
> db_update_period to 60, but this does not solve the problem.
>
> below you have a link to paste bin where you can find the trace and 
> the dialog information.
>
> http://pastebin.com/tWF6JWRr
>
> I hope you can give me some information.
>
> Thank you very much for your colaboration until now.
>
>
>
>
>
>
> Em 10/12/14 13:19, Liviu Chircu escreveu:
>> I'm going to ask you to try/do the following things:
>>
>> * fiddle with the "db_update_period" parameter of the dialog module 
>> [1]. See what works best for you.
>> With db_mode=1, it's normal to have more dialogs in memory than in 
>> the database at a given time. Please remember
>> that all dialogs are immediately flushed to the DB at shutdown anyway.
>>
>> * If you suspect that dialogs are really "hanging" in state 5, and 
>> not being removed, could you try to extract a
>> SIP trace for such a problematic call, so we can try and replicate 
>> the problem ourselves? Thank you!
>>
>> [1]: 
>> http://www.opensips.org/html/docs/modules/2.1.x/dialog.html#id294076
>>
>> Best regards,
>>
>> Liviu Chircu
>> OpenSIPS Developer
>> http://www.opensips-solutions.com
>>
>> On 10.12.2014 15:57, Mike Tesliuk wrote:
>>>
>>> Hello Liviu,
>>>
>>> Thanks for you answer, so, the opensips is starting with -m 3072 and 
>>> -M 256
>>>
>>> the get_statistics shmem is below (but i had executed a restart 5 
>>> minutes ago)
>>>
>>> shmem:total_size:: 3221225472
>>> shmem:used_size:: 53679760
>>> shmem:real_used_size:: 55528624
>>> shmem:max_used_size:: 55528664
>>> shmem:free_size:: 3165696848
>>> shmem:fragments:: 2
>>>
>>> 10 seconds later
>>>
>>>
>>> shmem:total_size:: 3221225472
>>> shmem:used_size:: 56895544
>>> shmem:real_used_size:: 58833520
>>> shmem:max_used_size:: 58833520
>>> shmem:free_size:: 3162391952
>>> shmem:fragments:: 2
>>>
>>>
>>> we have now 3478 dialogs on memory which 2061 are state 5
>>>
>>>
>>>
>>> Dec 10 11:54:01 sipproxy2 /usr/local/opensips/sbin/opensips[22057]: 
>>> DBG:dialog:dlg_onroute: route param is 'e28.d3c54054' (len=12)
>>> Dec 10 11:54:01 sipproxy2 /usr/local/opensips/sbin/opensips[22057]: 
>>> DBG:dialog:lookup_dlg: no dialog id=1157913661 found on entry 2094
>>> Dec 10 11:54:01 sipproxy2 /usr/local/opensips/sbin/opensips[22057]: 
>>> DBG:dialog:dlg_onroute: unable to find dialog for BYE with route 
>>> param 'e28.d3c54054'
>>> Dec 10 11:54:01 sipproxy2 /usr/local/opensips/sbin/opensips[22057]: 
>>> DBG:dialog:get_dlg: input ci=<c36ef238f2382b05 at 66.77.199.182>(30), 
>>> tt=<pehrsdejsdejdobgrhh9ii9ckk9cjduvwxyz>(36), ft=<as1512c76f>(10)
>>> Dec 10 11:54:01 sipproxy2 /usr/local/opensips/sbin/opensips[22057]: 
>>> DBG:dialog:get_dlg: no dialog 
>>> callid='c36ef238f2382b05 at 66.77.199.182' found
>>> Dec 10 11:54:01 sipproxy2 /usr/local/opensips/sbin/opensips[22057]: 
>>> DBG:dialog:dlg_onroute: Callid 'c36ef238f2382b05 at 66.77.199.182' not 
>>> found
>>>
>>>
>>> and on database, i have
>>>
>>> mysql> select count(*) from dialog;
>>> +----------+
>>> | count(*) |
>>> +----------+
>>> |     1465 |
>>> +----------+
>>>
>>> (now while i finish to write this email i have 3703 dialogs on state 5)
>>>
>>>
>>>
>>> Thanks in advice for you help.
>>>
>>>
>>>
>>> Em 10/12/14 10:24, Liviu Chircu escreveu:
>>>> Hello Mike,
>>>>
>>>> Normally, state 5 means that the dialog is over, and just waiting 
>>>> to be deleted from memory (BYEs have been sent!).
>>>>
>>>> From those numbers, it looks like you have enough shared memory, 
>>>> but no sufficient pkg memory.
>>>> Could you please provide the following:
>>>>
>>>> * amount of SHM and PKG you start OpenSIPS with
>>>> * any relevant ERRORs you see in the logfile
>>>> * output of "opensipsctl fifo get_statistics shmem:" command when 
>>>> you start to see memory errors
>>>>
>>>> Best regards,
>>>>
>>>> Liviu Chircu
>>>> OpenSIPS Developer
>>>> http://www.opensips-solutions.com
>>>>
>>>> On 10.12.2014 14:13, Mike Tesliuk wrote:
>>>>> Hello Guys,
>>>>>
>>>>> Im getting a problem of out of memory on my opensips, and what i 
>>>>> see is that i have a lot more dialogs on memory then on database, 
>>>>> im using db_mode on 1 , and i have now on database 1396 dialogs 
>>>>> and 35823 on memory, on memmory a lot of them are on state 5.
>>>>>
>>>>> What can cause this problem ? how can i identify this ?
>>>>>
>>>>> Thank you
>>>>>
>>>>> _______________________________________________
>>>>> 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
>>>
>>>
>>> _______________________________________________
>>> 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
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users




More information about the Users mailing list