Increase Private Memory Size on OpenSIPS
6:59 am in Linux, OpenSIPS by admin
By default the size of private memory chunk used by each OpenSIPS process is 1 MB.
To increase the size of private memory you need to compile OpenSIPS from sources. Once you get the sources from SVN or the opensips.org’s download site, do the following steps:
- edit the file “config.h” and search for the next lines:
/*used only if PKG_MALLOC is defined*/
#define PKG_MEM_POOL_SIZE 1024*1024
- change the value of PKG_MEM_POOL_SIZE to desired size, for example to have 4MB of private memory:
#define PKG_MEM_POOL_SIZE 4*1024*1024
- recompile and reinstall OpenSIPS
make all; make install;
Recent Comments