Hi Federico,

seams the logs you sent does not include the memory debug info. Are you sure you enable it? (in Makefile.defs set DBG_QM_MALLOC define and remove F_MALLOC - Note: you need to recompile everything).

regards,
bogdan

Federico Giannici wrote:

Bogdan-Andrei Iancu wrote:

HI Federico,

two things:

1) once you got the error in the logs, look on the previous line to see how much mem was tried to be allocated (it might be a problem in the code which triggers the mysql query)


It seems to me very strange because the sql query is triggered by a command line (not by some random SIP message). I tried it a few times, then restarted ser and then the command executed without any problem.

what you mean by command line? the query is triggers via openserctl ?



2) at shutdown, look for " Memory status (pkg)" at send me all the log.


I have attached it.


Thanks.



Federico Giannici wrote:

Hi Bogdan.

The problem appeared again after a few days of uptime.

I compiled with that DBG_QM_MALLOC and set debug=9, but I cannot understand what I have to look for in all that output...

Perhaps the sections that start with "dumping free list stats :" indicate an un-freed memory chunk? Anyway, I cannot understand how that information could be usefull to find the code that allocated that chunk of memory....

Thank you for any hint.



Bogdan-Andrei Iancu wrote:

Hi Federico,

compile with memory debug support: remove F_MALLOC and add the DBG_QM_MALLOC define in Makefile.defs (note you need to recompile everything).

At shutdown, a complete report on the memory will be logs - it will help to spot potential mem leaks.

BTW, this looks like errors generated by mysql (which uses the pkg memory) - are performing some huge query or something?

Also try to increase the size of the pkg memory - maybe is not a leak, but simple is not enough.

regards,
Bogdan

Federico Giannici wrote:

Is there any known memory leak in OpenSER 1.0.0?

Today, after some days or running, I found the following error logs:

Jan 20 10:32:04 eowyn OpenSER[19554]: convert_rows: No memory left
Jan 20 10:32:04 eowyn OpenSER[19554]: convert_result: Error while converting rows Jan 20 10:32:04 eowyn OpenSER[19554]: store_result: Error while converting result

So, I'd like to know if the problem is probably in MY code or could be in the standard OpenSER code.


Thanks.











_______________________________________________
Devel mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/devel

Reply via email to