On 07/18/08 17:03, Andrew O. Zhukov wrote: > Daniel-Constantin Mierla пишет: > >> On 07/18/08 16:05, Andrew O. Zhukov wrote: >> >>> Daniel-Constantin Mierla пишет: >>> >>>> On 07/18/08 15:17, Dan Pascu wrote: >>>> >>>>> It's more likely that this is not a memory leak, but a memory >>>>> fragmentation issue. If you happen to run a fifo command like >>>>> ul_dump with a lot of active contacts, it'll allocate a lot of small >>>>> fragments and the memory gets fragmented. Later even after the >>>>> memory is freed, it will not be able to allocate a 500+ byte memory >>>>> block because the memory is too fragmented and memory allocation >>>>> will fail even when 90% of the pkg_memory is free. >>>>> >>>>> >>>> Could be fragmentation, but that has to happen due to operations in >>>> that process. What is done via fifo affects only the memory of fifo >>>> listener process. In SIP workers process can be due to lot of SIP >>>> messages processing -- parsing, script variables, db operations,... >>>> >>>> Compile with memory debug and see the log dump, that will give more >>>> hints: >>>> http://www.openser.org/dokuwiki/doku.php/troubleshooting:memory >>>> >>>> >>> Let me know if you need something else, like a sip_trace table >>> extractions, openser.ini, etc.. >>> >> I need the log from openser compiled with memory debugging on -- see the >> link I sent. Looks as being some leak there, those logs show from where >> the chinks are allocate. >> > > This openser compiled exactly as in your link: > > What's wrong? >
are you sure? have you reinstalled/restarted openser? the logs are missing the "alloc'd from" details -- if you look in the wiki page there is an example of how logs should look like. is memlog set properly? Now the mem log simply looks: ul 17 17:37:36 ipshka openser[26651]: 6207. N address=0x8378d0 frag=0x8378c0 size=80 used=1 Jul 17 17:37:36 ipshka openser[26649]: 6390. N address=0x837100 frag=0x8370f0 size=128 used=1 Jul 17 17:37:36 ipshka openser[26652]: 6151. N address=0x8356f0 frag=0x8356e0 size=64 used=1 Daniel > ----------------------------------------------- > > DEFS+= $(extra_defs) \ > -DNAME='"$(MAIN_NAME)"' -DVERSION='"$(RELEASE)"' > -DARCH='"$(ARCH)"' \ > -DOS='"$(OS)"' -DCOMPILER='"$(CC_VER)"' -D__CPU_$(ARCH) > -D__OS_$(OS) \ > -D__SMP_$(ISSMP) -DCFG_DIR='"$(cfg-target)"'\ > -DPKG_MALLOC \ > -DSHM_MEM -DSHM_MMAP \ > -DUSE_IPV6 \ > -DUSE_MCAST \ > -DUSE_TCP \ > -DDISABLE_NAGLE \ > -DHAVE_RESOLV_RES \ > -DSTATISTICS \ > -DCHANGEABLE_DEBUG_LEVEL \ > #-DF_MALLOC \ > -DDBG_QM_MALLOC \ > #-DDBG_F_MALLOC \ > #-DNO_DEBUG \ > #-DNO_LOG \ > #-DVQ_MALLOC \ > #-DDBG_LOCK \ > #-DNOSMP \ > #-DEXTRA_DEBUG \ > #-DUSE_SHM_MEM > -------------------------------------------------------- > # ----------- global configuration parameters ------------------------ > > debug=3 # debug level (cmd line: -dddddddddd) > fork=yes > log_stderror=no # (cmd line: -E) > log_facility=LOG_LOCAL0 > memlog=1 > > #/* Uncomment these lines to enter debugging mode > #fork=no > #log_stderror=yes > #debug=6 > #*/ > > ------------------------------------ > > > >> Daniel >> >> >> > > > _______________________________________________ > Devel mailing list > Devel@lists.openser.org > http://lists.openser.org/cgi-bin/mailman/listinfo/devel > -- Daniel-Constantin Mierla http://www.asipto.com _______________________________________________ Devel mailing list Devel@lists.openser.org http://lists.openser.org/cgi-bin/mailman/listinfo/devel