New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to query database "no private memory left". Kamailio daemon automatic shutdown. #156
Comments
What is the version of your kamailio? How many rows are loaded at same time? Is it big size over all? |
Hi miconda thanks. |
Minor version number is important, provide the output of the command 'kamailio -v'. Kamailio is not using all the system memory, you have to specify the maximum size to use via -m for shared memory (used by all kamailio processes, allocated per kamailio instance) or -M for private memory (used by one process and allocated for each process). |
Output of 'kamailio -v' So I need to increase the shared and private memory using "kamailio -m 512 -M 8" command? |
First upgrade to latest kamailio 4.2.x, you are running 4.2.0 and there were many fixes since then. All versions that start with 4.2 (e.g., 4.2.0 or 4.2.4) use the same configuration and database structure, so you just install new binaries and restart kamailio, there is nothing else to do, it will work with existing config and database. It seems you already have 8MB of private memory and if you don't load a lot of records, should be enough. You can set it to 12MB (via -M) if you like, but the important thing is to monitor the evolution of used private memory. You can do that from command line with:
See if the used pkg memory per process increases continuously over time, then it is a leak somewhere. |
Ok thanks for the info ! |
I do recommend the other way around. 4.2.0 should not be used as long as there is something newer in 4.2 series. Right now 4.2.4 is the one to use and you should upgrade to it first thing. Note also that 4.2.5 is planned to be released soon. |
Issue is resolved. |
I am using kamailio mysql module to read my route information and route the calls according to it but from few days kamailio process is shutdown automatically. When I have checked the log file I got following Error messages.
ERROR: db_mysql [km_res.c:81]: db_mysql_get_columns(): no private memory left
ERROR: [db_row.c:116]: db_allocate_row(): no private memory left
The text was updated successfully, but these errors were encountered: