List Info

Thread: Re: memory leak in presence module?




Re: memory leak in presence module?
country flaguser name
Austria
2007-04-26 04:36:25
# openserctl fifo get_statistics
400 Too few or too many arguments

:-(

I'm using 1.2


regards
klaus



Klaus Darilion wrote:
> 
> 
> Daniel-Constantin Mierla wrote:
>> Hello Klaus,
>>
>> if that is the full log, seems no mem leak in shm.
What is the shm 
>> memory size you use?
> 
> I don't know - I use the default values. But the size
should be 
> irrelevant as the "no memory left" is still
there after 20 minutes of 
> inactivity.
> 
>> Once you get out of memory can you issue"
openserctl fifo 
>> get_statistics" and send output?
> ok
>>
>> I don't think is fragmentation, but you can try to
compile with 
>> -DQM_JOIN_FREE
>>
> ok
>> Do you do the tests over TLS?
> ok
>>
>> Cheers,
>> Daniel
>>
>>
>> On 04/26/07 10:17, Klaus Darilion wrote:
>>> btw: there is no
>>> "PRESENCE:notify: ERROR in function
tmb.t_request_within"
>>> in my log file, thus I guess the problem is
somewhere else.
>>>
>>> regards
>>> klaus
>>>
>>> Klaus Darilion wrote:
>>>> Hi Anca!
>>>>
>>>> There is still a leak:
>>>> http://pe
rnau.at/kd/openser/debug-stop2.txt
>>>>
>>>> regards
>>>> klaus
>>>>
>>>> Anca-Maria Vamanu wrote:
>>>>> Hello,
>>>>>
>>>>> I have made a fix. Please test again
with sipp and say if it works 
>>>>> now.
>>>>>
>>>>> regards,
>>>>>
>>>>> Anca
>>>>>
>>>>> Klaus Darilion wrote:
>>>>>
>>>>>> Hi!
>>>>>>
>>>>>> Openser 1.2 runs out of memory
during presence load tests with sipp.
>>>>>>
>>>>>> Config snippet:
>>>>>>
>>>>>> if (is_method("PUBLISH"))
{
>>>>>>   xlog("L_INFO","$ci
PUBLISH detected ... outside t_newtrann");
>>>>>>   if (t_newtran()) {
>>>>>>    
xlog("L_INFO","$ci PUBLISH detected ...
inside t_newtrann");
>>>>>>     handle_publish();
>>>>>>    
xlog("L_INFO","$ci PUBLISH detected,
handle_publish ... donen");
>>>>>>     exit;
>>>>>>   } else {
>>>>>>     sl_reply_error();
>>>>>>     exit;
>>>>>>   }
>>>>>> }
>>>>>>
>>>>>> Memory log after openser stop
(after 20 minutes of inactivity):
>>>>>> http://per
nau.at/kd/openser/debug-stop.txt
>>>>>>
>>>>>>
>>>>>> regards
>>>>>> klaus Klaus Darilion wrote:
>>>>>>
>>>>>>> Hi Cesc!
>>>>>>>
>>>>>>> Where do you have t_newtran() -
in ser or openser?
>>>>>>>
>>>>>>> I have it here in openser just
before handle_publish(). It works 
>>>>>>> but now openser has run out of
mem during my sipp performance 
>>>>>>> tests :-(
>>>>>>>
>>>>>>> ...more to come....
>>>>>>>
>>>>>>> Cesc wrote:
>>>>>>>
>>>>>>>> I think I can answer that
one ... stateless?
>>>>>>>>
>>>>>>>> I have a presence openser
proxied by a SER, both on same machine 
>>>>>>>> ...
>>>>>>>> For easier configuration
purposes, openser and ser communicate via
>>>>>>>> 127.0.0.1 ...
>>>>>>>>
>>>>>>>> The result is that OK from
the PUAs do not get to openser (i 
>>>>>>>> guess SER
>>>>>>>> gets confussed by the vias
of openser being 0.0.0.0:5060 and the
>>>>>>>> 127.0.0.1 stuff) ... So,
openser gets no OK, but it does not matter
>>>>>>>> ...
>>>>>>>> BTW, i have a t_newtran()
in there ...
>>>>>>>>
>>>>>>>> Oh, for sure my
configuration is messy and improvable ... but 
>>>>>>>> for now
>>>>>>>> it works steady  But the
OKs not going through is worrying me 
>>>>>>>> a bit
>>>>>>>> ... and also openser not
"timing out" or giving an error.
>>>>>>>>
>>>>>>>> Cesc
>>>>>>>>
>>>>>>>> On 4/25/07, Klaus Darilion
<klaus.mailinglistspernau.at> wrote:
>>>>>>>>
>>>>>>>>> Hi!
>>>>>>>>>
>>>>>>>>> Does presence module
handles PUBLISH/SUBSCRIBE stateful or 
>>>>>>>>> stateless?
>>>>>>>>>
>>>>>>>>> Thus, how should
retransmission be handled. Will they be 
>>>>>>>>> detected by
>>>>>>>>> presence module or is
it possible to wrap the handle_publish 
>>>>>>>>> inside
>>>>>>>>> t_newtran()?
>>>>>>>>>
>>>>>>>>> regards
>>>>>>>>> klaus
>>>>>>>>>
>>>>>>>>>
_______________________________________________
>>>>>>>>> Users mailing list
>>>>>>>>> Usersopenser.org
>>>>>>>>> htt
p://openser.org/cgi-bin/mailman/listinfo/users
>>>>>>>>>
>>>>>>>
>>>>>>>
_______________________________________________
>>>>>>> Users mailing list
>>>>>>> Usersopenser.org
>>>>>>> htt
p://openser.org/cgi-bin/mailman/listinfo/users
>>>>>>
>>>>>>
>>>>>>
_______________________________________________
>>>>>> Users mailing list
>>>>>> Usersopenser.org
>>>>>> htt
p://openser.org/cgi-bin/mailman/listinfo/users
>>>>>>
>>>>>
>>>>
>>>>
_______________________________________________
>>>> Users mailing list
>>>> Usersopenser.org
>>>> htt
p://openser.org/cgi-bin/mailman/listinfo/users
>>>
>>>
_______________________________________________
>>> Users mailing list
>>> Usersopenser.org
>>> htt
p://openser.org/cgi-bin/mailman/listinfo/users
>>>
> 
> _______________________________________________
> Users mailing list
> Usersopenser.org
> htt
p://openser.org/cgi-bin/mailman/listinfo/users

_______________________________________________
Users mailing list
Usersopenser.org
htt
p://openser.org/cgi-bin/mailman/listinfo/users

Re: memory leak in presence module?
country flaguser name
Romania
2007-04-26 04:37:06
my mistake:

# openserctl fifo get_statistics all

Cheers,
Daniel


On 04/26/07 12:36, Klaus Darilion wrote:
> # openserctl fifo get_statistics
> 400 Too few or too many arguments
>
> :-(
>
> I'm using 1.2
>
>
> regards
> klaus
>
>
>
> Klaus Darilion wrote:
>>
>>
>> Daniel-Constantin Mierla wrote:
>>> Hello Klaus,
>>>
>>> if that is the full log, seems no mem leak in
shm. What is the shm 
>>> memory size you use?
>>
>> I don't know - I use the default values. But the
size should be 
>> irrelevant as the "no memory left" is
still there after 20 minutes of 
>> inactivity.
>>
>>> Once you get out of memory can you issue"
openserctl fifo 
>>> get_statistics" and send output?
>> ok
>>>
>>> I don't think is fragmentation, but you can try
to compile with 
>>> -DQM_JOIN_FREE
>>>
>> ok
>>> Do you do the tests over TLS?
>> ok
>>>
>>> Cheers,
>>> Daniel
>>>
>>>
>>> On 04/26/07 10:17, Klaus Darilion wrote:
>>>> btw: there is no
>>>> "PRESENCE:notify: ERROR in function
tmb.t_request_within"
>>>> in my log file, thus I guess the problem is
somewhere else.
>>>>
>>>> regards
>>>> klaus
>>>>
>>>> Klaus Darilion wrote:
>>>>> Hi Anca!
>>>>>
>>>>> There is still a leak:
>>>>> http://pe
rnau.at/kd/openser/debug-stop2.txt
>>>>>
>>>>> regards
>>>>> klaus
>>>>>
>>>>> Anca-Maria Vamanu wrote:
>>>>>> Hello,
>>>>>>
>>>>>> I have made a fix. Please test
again with sipp and say if it 
>>>>>> works now.
>>>>>>
>>>>>> regards,
>>>>>>
>>>>>> Anca
>>>>>>
>>>>>> Klaus Darilion wrote:
>>>>>>
>>>>>>> Hi!
>>>>>>>
>>>>>>> Openser 1.2 runs out of memory
during presence load tests with 
>>>>>>> sipp.
>>>>>>>
>>>>>>> Config snippet:
>>>>>>>
>>>>>>> if
(is_method("PUBLISH")) {
>>>>>>>  
xlog("L_INFO","$ci PUBLISH detected ...
outside t_newtrann");
>>>>>>>   if (t_newtran()) {
>>>>>>>    
xlog("L_INFO","$ci PUBLISH detected ...
inside t_newtrann");
>>>>>>>     handle_publish();
>>>>>>>    
xlog("L_INFO","$ci PUBLISH detected,
handle_publish ... 
>>>>>>> donen");
>>>>>>>     exit;
>>>>>>>   } else {
>>>>>>>     sl_reply_error();
>>>>>>>     exit;
>>>>>>>   }
>>>>>>> }
>>>>>>>
>>>>>>> Memory log after openser stop
(after 20 minutes of inactivity):
>>>>>>> http://per
nau.at/kd/openser/debug-stop.txt
>>>>>>>
>>>>>>>
>>>>>>> regards
>>>>>>> klaus Klaus Darilion wrote:
>>>>>>>
>>>>>>>> Hi Cesc!
>>>>>>>>
>>>>>>>> Where do you have
t_newtran() - in ser or openser?
>>>>>>>>
>>>>>>>> I have it here in openser
just before handle_publish(). It 
>>>>>>>> works but now openser has
run out of mem during my sipp 
>>>>>>>> performance tests :-(
>>>>>>>>
>>>>>>>> ...more to come....
>>>>>>>>
>>>>>>>> Cesc wrote:
>>>>>>>>
>>>>>>>>> I think I can answer
that one ... stateless?
>>>>>>>>>
>>>>>>>>> I have a presence
openser proxied by a SER, both on same 
>>>>>>>>> machine ...
>>>>>>>>> For easier
configuration purposes, openser and ser communicate 
>>>>>>>>> via
>>>>>>>>> 127.0.0.1 ...
>>>>>>>>>
>>>>>>>>> The result is that OK
from the PUAs do not get to openser (i 
>>>>>>>>> guess SER
>>>>>>>>> gets confussed by the
vias of openser being 0.0.0.0:5060 and the
>>>>>>>>> 127.0.0.1 stuff) ...
So, openser gets no OK, but it does not 
>>>>>>>>> matter
>>>>>>>>> ...
>>>>>>>>> BTW, i have a
t_newtran() in there ...
>>>>>>>>>
>>>>>>>>> Oh, for sure my
configuration is messy and improvable ... but 
>>>>>>>>> for now
>>>>>>>>> it works steady  But the
OKs not going through is worrying 
>>>>>>>>> me a bit
>>>>>>>>> ... and also openser
not "timing out" or giving an error.
>>>>>>>>>
>>>>>>>>> Cesc
>>>>>>>>>
>>>>>>>>> On 4/25/07, Klaus
Darilion <klaus.mailinglistspernau.at> wrote:
>>>>>>>>>
>>>>>>>>>> Hi!
>>>>>>>>>>
>>>>>>>>>> Does presence
module handles PUBLISH/SUBSCRIBE stateful or 
>>>>>>>>>> stateless?
>>>>>>>>>>
>>>>>>>>>> Thus, how should
retransmission be handled. Will they be 
>>>>>>>>>> detected by
>>>>>>>>>> presence module or
is it possible to wrap the handle_publish 
>>>>>>>>>> inside
>>>>>>>>>> t_newtran()?
>>>>>>>>>>
>>>>>>>>>> regards
>>>>>>>>>> klaus
>>>>>>>>>>
>>>>>>>>>>
_______________________________________________
>>>>>>>>>> Users mailing list
>>>>>>>>>> Usersopenser.org
>>>>>>>>>> htt
p://openser.org/cgi-bin/mailman/listinfo/users
>>>>>>>>>>
>>>>>>>>
>>>>>>>>
_______________________________________________
>>>>>>>> Users mailing list
>>>>>>>> Usersopenser.org
>>>>>>>> htt
p://openser.org/cgi-bin/mailman/listinfo/users
>>>>>>>
>>>>>>>
>>>>>>>
_______________________________________________
>>>>>>> Users mailing list
>>>>>>> Usersopenser.org
>>>>>>> htt
p://openser.org/cgi-bin/mailman/listinfo/users
>>>>>>>
>>>>>>
>>>>>
>>>>>
_______________________________________________
>>>>> Users mailing list
>>>>> Usersopenser.org
>>>>> htt
p://openser.org/cgi-bin/mailman/listinfo/users
>>>>
>>>>
_______________________________________________
>>>> Users mailing list
>>>> Usersopenser.org
>>>> htt
p://openser.org/cgi-bin/mailman/listinfo/users
>>>>
>>
>> _______________________________________________
>> Users mailing list
>> Usersopenser.org
>> htt
p://openser.org/cgi-bin/mailman/listinfo/users
>

_______________________________________________
Users mailing list
Usersopenser.org
htt
p://openser.org/cgi-bin/mailman/listinfo/users

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )