[Freeswitch-users] Are there any known memory leaks with reloadxml and large XML configs?
nneul at mst.edu
Thu Apr 14 23:24:58 MSD 2016
Running some more post analysis over the raw content of the core dump, and extracting each parsed blob of XML, it looks
like almost all of them are complete copies (and not partial like if it ran out of room and had to resize+relocate).
I extracted all of the chunks to individual files, and looking at each one in turn based on sequential position in
memory, I am seeing reasonably expected small/tiny changes from one to the next that would correspond to incremental
changes in our configuration UI (stuff like individual changes to a line key, button position, voicemail address,
What in the system results in a full copy of the parsed XML structure? Does every access do some sort of temporary copy
like you'd get with SQL and transaction isolation?
On 04/14/2016 01:25 PM, Nathan Neulinger wrote:
> FS-9074 opened.
> I've attempted to reproduce in lab environment, but not with much success since I can't readily reproduce the
> activity/usage level from the production environment. On production env, I can readily see the resident memory growing
> when I reloadxml on the active server, but it doesn't do it every time, so it's clearly some sort of combination of
> events/timing related.
> On the lab setup, I typically see about 3 x duplicates of the strings from the XML in a generated core.
> No modules are being reloaded during normal operations. Just a rewrite of the configs followed by a reloadxml.
> As far as the commercial option - have asked y'all several times for what our options would be for that sort of service,
> but have never gotten any clear answer particularly given the custom deployment we have. Would be very interested in
> presenting that to management here if you can give me some proposed service offerings and costs.
> -- Nathan
> On 04/14/2016 12:58 PM, Anthony Minessale wrote:
>> Have you done any debugging like running valgrind or ASAN on a server?
>> Did you try to reproduce it in a lab yet?
>> We can't really do any leg work for you so we would need a more specific reproduction case.
>> We do offer commercial options as you are probably already are aware of where we could deploy consultants to do more of
>> the leg work for you.
>> Do you only reloadxml or do you reload any modules.
>> Also you should ALWAYS file a jira. We don't want to field issues on the list. Its not a problem to close NOT A BUG if
>> it turns out that way.
>> On Thu, Apr 14, 2016 at 12:50 PM, Nathan Neulinger <nneul at mst.edu <mailto:nneul at mst.edu>> wrote:
>> The indication I'm reacting to of leak isn't "one in memory".... The below is showing FIFTY THREE of them.
>> -- Nathan
Nathan Neulinger nneul at mst.edu
Missouri S&T Information Technology (573) 612-1412
System Administrator - Architect
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users