Hello,

looks good: I tried this revision with sipp with 200 cps and 2s calls using
$ sipp -sn uac -i 192.168.5.106 -s 35 -d 3000 -r 200 192.168.5.106:5070
and application=tango with tango.py
trunk/core $ cat scripts/tango.py
from log import *
from ivr import *

class IvrDialog(IvrDialogBase):

    def onSessionStart(self, hdrs):

        info("starting to tango ...")

        self.setNoRelayonly()

        self.audio_msg = IvrAudioFile()
        self.audio_msg.open("wav/default_en.wav", AUDIO_READ)
        self.enqueue(self.audio_msg,None)


    def onBye(self):

        self.stopSession()

and memory usage stayed constant (after a while):
 ~calls RES
   9000 459M
  27000 465M
  65000 465M
 138000 477M
 233000 480M
 757000 488M
1010000 488M
1460000 488M

I can not say why memory usage grows for the first 300k calls, but if it stays constant after that, I would say we can let it have those extra 20megs.

Best
Stefan



o [email protected] [04/24/09 16:33]:
Author: sayer
Date: 2009-04-24 16:33:34 +0200 (Fri, 24 Apr 2009)
New Revision: 1356

Modified:
   trunk/apps/ivr/Ivr.cpp
   trunk/apps/ivr/IvrDialogBase.cpp
   trunk/apps/ivr/IvrSipReply.cpp
   trunk/apps/ivr/IvrSipRequest.cpp
   trunk/apps/ivr/IvrSipRequest.h
Log:
more from the ivr mem leak hunt: o IvrSipRequest/IvrSipReply python objects need to destroy the underlying c++ object, if they own them (so not for dlg.invite_req, which is the original c++ object owned by the AmSession) o IvrSipRequest/IvrSipReply python objects need to be DECREFd after calling the onSipRequest/onSipReply methods to free them



--
Stefan Sayer
VoIP Services

[email protected]
www.iptego.com

IPTEGO GmbH
Wittenbergplatz 1
10789 Berlin
Germany

Amtsgericht Charlottenburg, HRB 101010
Geschaeftsfuehrer: Alexander Hoffmann
_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to